mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-28 13:58:27 +02:00
[Feature] Make the rest of the builtins configurable (#1318)
This commit is contained in:
parent
1cc2452eb7
commit
335e707b2a
11 changed files with 154 additions and 105 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue