avoid using cmp disable var for autopairs (#567)

pull/576/head
siduck76 3 years ago
parent 67962828bb
commit 068ae08f6c

@ -72,6 +72,7 @@ M.plugins = {
vim_matchup = true, -- % operator enhancements
cmp = true,
nvimtree = true,
autopairs = true,
},
options = {
lspconfig = {

@ -10,6 +10,9 @@ M.autopairs = function()
end
autopairs.setup()
-- not needed if you disable cmp, the above var related to cmp tooo! override default config for autopairs
autopairs_completion.setup {
map_complete = true, -- insert () func completion
map_cr = true,

@ -204,7 +204,7 @@ return packer.startup(function()
-- misc plugins
use {
"windwp/nvim-autopairs",
disable = not status.cmp,
disable = not status.autopairs,
after = "nvim-cmp",
config = override_req("nvim_autopairs", "(plugins.configs.others).autopairs()"),
}

Loading…
Cancel
Save