remove duplicate var | tidy

This commit is contained in:
siduck 2022-01-29 20:03:59 +05:30
parent 0349de6d10
commit 50aa25f307
1 changed files with 8 additions and 9 deletions

View File

@ -126,8 +126,7 @@ return packer.startup(function()
use {
"rafamadriz/friendly-snippets",
module = 'cmp_nvim_lsp',
disable = not plugin_settings.status.cmp,
module = "cmp_nvim_lsp",
disable = not (plugin_settings.status.cmp and plugin_settings.status.snippets),
event = "InsertEnter",
}
@ -137,7 +136,7 @@ return packer.startup(function()
use {
"hrsh7th/nvim-cmp",
disable = not plugin_settings.status.cmp,
event = plugin_settings.status.snippets and 'InsertEnter',
event = not plugin_settings.status.snippets and "InsertEnter",
after = plugin_settings.status.snippets and "friendly-snippets",
config = override_req("nvim_cmp", "plugins.configs.cmp", "setup"),
}