remove duplicate var | tidy

This commit is contained in:
siduck 2022-01-29 20:03:59 +05:30
parent 0349de6d10
commit 50aa25f307

View File

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