neovim: remove material colorscheme

This commit is contained in:
2022-11-13 15:45:00 +03:00
parent 3fd3ceced9
commit 73d16ac94e
4 changed files with 3 additions and 23 deletions

View File

@@ -2,16 +2,11 @@ local telescope = require("telescope")
local actions = require("telescope.actions") local actions = require("telescope.actions")
local layout_actions = require("telescope.actions.layout") local layout_actions = require("telescope.actions.layout")
local winblend = 15
if require("daniil.utils").get_colorscheme() == "poimandres" then
winblend = 0
end
telescope.setup({ telescope.setup({
defaults = { defaults = {
sorting_strategy = "ascending", sorting_strategy = "ascending",
file_ignore_patterns = { ".git/", "node_modules/" }, file_ignore_patterns = { ".git/", "node_modules/" },
winblend = winblend, winblend = 15,
mappings = { mappings = {
i = { i = {
["<C-j>"] = actions.move_selection_worse, ["<C-j>"] = actions.move_selection_worse,

View File

@@ -2,9 +2,7 @@ vim.api.nvim_set_hl(0, "SpellBad", {
fg = "red", fg = "red",
}) })
local colorscheme = require("daniil.utils").get_colorscheme()
vim.cmd("colorscheme " .. colorscheme)
vim.cmd([[ vim.cmd([[
hi clear SignColumn hi clear SignColumn
colorscheme gruvbox-material
]]) ]])

View File

@@ -20,10 +20,7 @@ require("packer").startup(function(use)
use({ "folke/neodev.nvim" }) use({ "folke/neodev.nvim" })
-- Colorschemes go here -- Colorschemes go here
use({ use({ "sainnhe/gruvbox-material" })
{ "sainnhe/gruvbox-material" },
{ "kaicataldo/material.vim" },
})
-- Make commenting code great -- Make commenting code great
use({ use({

View File

@@ -120,16 +120,6 @@ function M.is_inside_tmux()
return TMUX ~= nil return TMUX ~= nil
end end
function M.get_colorscheme()
local IS_TMUX = M.is_inside_tmux()
if IS_TMUX then
return "gruvbox-material"
else
return "material"
end
end
function M.open_error_on_stackoverflow() function M.open_error_on_stackoverflow()
local diagnostics = vim.lsp.diagnostic.get_line_diagnostics() local diagnostics = vim.lsp.diagnostic.get_line_diagnostics()
local selected_diagnostic = M.select_diagnostic(diagnostics, "Select diagnostic to open on Stack Overflow") local selected_diagnostic = M.select_diagnostic(diagnostics, "Select diagnostic to open on Stack Overflow")