From d17d01afef784a5277fa99b26bf7a9ba2ffa6357 Mon Sep 17 00:00:00 2001 From: talha Date: Wed, 3 Jan 2024 19:34:10 +0500 Subject: Updated colorscheme, added ctags --- after/plugin/colors.lua | 27 ++------------------------- after/plugin/lsp.lua | 1 - after/plugin/vim-gutentags.lua | 6 ++++++ 3 files changed, 8 insertions(+), 26 deletions(-) create mode 100644 after/plugin/vim-gutentags.lua (limited to 'after') diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua index b32344f..6757b21 100644 --- a/after/plugin/colors.lua +++ b/after/plugin/colors.lua @@ -1,26 +1,3 @@ -require("gruvbox").setup({ - terminal_colors = true, -- add neovim terminal colors - undercurl = true, - underline = true, - bold = true, - italic = { - strings = true, - emphasis = true, - comments = true, - operators = false, - folds = true, - }, - strikethrough = true, - invert_selection = false, - invert_signs = false, - invert_tabline = false, - invert_intend_guides = false, - inverse = true, -- invert background for search, diffs, statuslines and errors - contrast = "", -- can be "hard", "soft" or empty string - palette_overrides = {}, - overrides = {}, - dim_inactive = false, - transparent_mode = false, -}) +vim.o.background = "dark" -vim.cmd("colorscheme nightfly") +vim.cmd("colorscheme vscode") diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 642328c..f8dae3c 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -20,7 +20,6 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set("n", "vrr", function() vim.lsp.buf.references() end, opts) vim.keymap.set("n", "vrn", function() vim.lsp.buf.rename() end, opts) vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) - lsp.buffer_autoformat() end) lsp.setup() diff --git a/after/plugin/vim-gutentags.lua b/after/plugin/vim-gutentags.lua new file mode 100644 index 0000000..40bd630 --- /dev/null +++ b/after/plugin/vim-gutentags.lua @@ -0,0 +1,6 @@ +vim.opt.tags = './tags' +vim.g.gutentags_ctags_exclude_wildignore = 1 +vim.g.gutentags_ctags_exclude = { + 'node_modules', '_build', 'build', 'CMakeFiles', '.mypy_cache', 'venv', + '*.md', '*.tex', '*.css', '*.html', '*.json', '*.xml', '*.xmls', '*.ui', + '*.py', '*.sh', '*.sql', '*.wsgi'} -- cgit v1.2.3