avoid using cmp disable var for autopairs (#567)
This commit is contained in:
parent
67962828bb
commit
068ae08f6c
3 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue