feat: add overrides for more plugins | disable some by default

This commit is contained in:
siduck76 2021-09-24 20:47:53 +05:30
parent a820c3cafd
commit 9e8fb9db74
2 changed files with 5 additions and 9 deletions

View File

@ -61,7 +61,7 @@ M.plugins = {
autosave = false, -- to autosave files autosave = false, -- to autosave files
blankline = true, -- show code scope with symbols blankline = true, -- show code scope with symbols
bufferline = true, -- list open buffers up the top, easy switching too bufferline = true, -- list open buffers up the top, easy switching too
colorizer = true, -- color RGB, HEX, CSS, NAME color codes colorizer = false, -- color RGB, HEX, CSS, NAME color codes
comment = true, -- easily (un)comment code, language aware comment = true, -- easily (un)comment code, language aware
dashboard = false, -- NeoVim 'home screen' on open dashboard = false, -- NeoVim 'home screen' on open
esc_insertmode = true, -- map to <ESC> with no lag esc_insertmode = true, -- map to <ESC> with no lag
@ -69,11 +69,11 @@ M.plugins = {
gitsigns = true, -- gitsigns in statusline gitsigns = true, -- gitsigns in statusline
lspsignature = true, -- lsp enhancements lspsignature = true, -- lsp enhancements
neoformat = true, -- universal code formatter neoformat = true, -- universal code formatter
neoscroll = true, -- smooth scroll neoscroll = false, -- smooth scroll
telescope_media = false, -- media previews within telescope finders telescope_media = false, -- media previews within telescope finders
truezen = false, -- distraction free & minimalist UI mode truezen = false, -- distraction free & minimalist UI mode
vim_fugitive = false, -- git integration & tooling vim_fugitive = false, -- git integration & tooling
vim_matchup = true, -- % operator enhancements vim_matchup = false, -- % operator enhancements
}, },
options = { options = {
lspconfig = { lspconfig = {

View File

@ -134,18 +134,14 @@ return packer.startup(function()
vim.cmd "silent! e %" vim.cmd "silent! e %"
end, 0) end, 0)
end, end,
config = function() config = override_req("lspconfig", "plugins.configs.lspconfig"),
require "plugins.configs.lspconfig"
end,
} }
use { use {
"ray-x/lsp_signature.nvim", "ray-x/lsp_signature.nvim",
disable = not plugin_status.lspsignature, disable = not plugin_status.lspsignature,
after = "nvim-lspconfig", after = "nvim-lspconfig",
config = function() config = override_req("signature", "(plugins.configs.others).signature()"),
require("plugins.configs.others").signature()
end,
} }
use { use {