avoid using cmp disable var for autopairs (#567)

This commit is contained in:
siduck76 2021-10-22 05:47:35 +05:30
parent 67962828bb
commit 068ae08f6c
3 changed files with 5 additions and 1 deletions

View File

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

View File

@ -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,

View File

@ -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()"),
}