fix : Add option to disable cmp (#482)
This commit is contained in:
parent
8e0dfc1de6
commit
a41ab8b830
@ -73,6 +73,7 @@ M.plugins = {
|
|||||||
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_matchup = true, -- % operator enhancements
|
vim_matchup = true, -- % operator enhancements
|
||||||
|
cmp = true,
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
lspconfig = {
|
lspconfig = {
|
||||||
|
@ -174,17 +174,20 @@ return packer.startup(function()
|
|||||||
|
|
||||||
use {
|
use {
|
||||||
"rafamadriz/friendly-snippets",
|
"rafamadriz/friendly-snippets",
|
||||||
|
disable = not plugin_status.cmp,
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
|
disable = not plugin_status.cmp,
|
||||||
after = "friendly-snippets",
|
after = "friendly-snippets",
|
||||||
config = override_req("nvim_cmp", "plugins.configs.cmp"),
|
config = override_req("nvim_cmp", "plugins.configs.cmp"),
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
|
disable = not plugin_status.cmp,
|
||||||
wants = "friendly-snippets",
|
wants = "friendly-snippets",
|
||||||
after = "nvim-cmp",
|
after = "nvim-cmp",
|
||||||
config = override_req("luasnip", "(plugins.configs.others).luasnip()"),
|
config = override_req("luasnip", "(plugins.configs.others).luasnip()"),
|
||||||
@ -192,27 +195,32 @@ return packer.startup(function()
|
|||||||
|
|
||||||
use {
|
use {
|
||||||
"saadparwaiz1/cmp_luasnip",
|
"saadparwaiz1/cmp_luasnip",
|
||||||
|
disable = not plugin_status.cmp,
|
||||||
after = "LuaSnip",
|
after = "LuaSnip",
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"hrsh7th/cmp-nvim-lua",
|
"hrsh7th/cmp-nvim-lua",
|
||||||
|
disable = not plugin_status.cmp,
|
||||||
after = "cmp_luasnip",
|
after = "cmp_luasnip",
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
disable = not plugin_status.cmp,
|
||||||
after = "cmp-nvim-lua",
|
after = "cmp-nvim-lua",
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"hrsh7th/cmp-buffer",
|
"hrsh7th/cmp-buffer",
|
||||||
|
disable = not plugin_status.cmp,
|
||||||
after = "cmp-nvim-lsp",
|
after = "cmp-nvim-lsp",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- misc plugins
|
-- misc plugins
|
||||||
use {
|
use {
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
|
disable = not plugin_status.cmp,
|
||||||
after = "nvim-cmp",
|
after = "nvim-cmp",
|
||||||
config = override_req("nvim_autopairs", "(plugins.configs.others).autopairs()"),
|
config = override_req("nvim_autopairs", "(plugins.configs.others).autopairs()"),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user