diff options
author | kylo252 <[email protected]> | 2021-08-17 17:20:18 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-17 19:50:18 +0430 |
commit | 335e707b2aae38c0cd5d0d962b27038ab1117aa6 (patch) | |
tree | 4be5b6ca5ea2e018893b067e5656f199e7a99e8f /lua/plugins.lua | |
parent | 1cc2452eb7b76aad36a6d9d210abff88edf6721a (diff) |
[Feature] Make the rest of the builtins configurable (#1318)
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 5353de5b..c9e7f3c2 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -27,6 +27,7 @@ return { lvim.builtin.telescope.on_config_done(require "telescope") end end, + disable = not lvim.builtin.telescope.active, }, -- Completion & Snippets @@ -39,6 +40,7 @@ return { lvim.builtin.compe.on_config_done(require "compe") end end, + disable = not lvim.builtin.compe.active, -- wants = "vim-vsnip", -- requires = { -- { @@ -56,10 +58,12 @@ return { "hrsh7th/vim-vsnip", -- wants = "friendly-snippets", event = "InsertEnter", + disable = not lvim.builtin.compe.active, }, { "rafamadriz/friendly-snippets", event = "InsertCharPre", + disable = not lvim.builtin.compe.active, }, -- Autopairs @@ -68,11 +72,12 @@ return { -- event = "InsertEnter", after = "nvim-compe", config = function() - require "core.autopairs" + require("core.autopairs").setup() if lvim.builtin.autopairs.on_config_done then lvim.builtin.autopairs.on_config_done(require "nvim-autopairs") end end, + disable = not lvim.builtin.autopairs.active or not lvim.builtin.compe.active, }, -- Treesitter @@ -100,6 +105,7 @@ return { lvim.builtin.nvimtree.on_config_done(require "nvim-tree.config") end end, + disable = not lvim.builtin.nvimtree.active, }, { @@ -112,6 +118,7 @@ return { end end, event = "BufRead", + disable = not lvim.builtin.gitsigns.active, }, -- Whichkey @@ -124,6 +131,7 @@ return { end end, event = "BufWinEnter", + disable = not lvim.builtin.which_key.active, }, -- Comments @@ -136,6 +144,7 @@ return { lvim.builtin.comment.on_config_done(require "nvim_comment") end end, + disable = not lvim.builtin.comment.active, }, -- vim-rooter |