avoid using cmp disable var for autopairs (#567)
This commit is contained in:
parent
67962828bb
commit
068ae08f6c
|
@ -72,6 +72,7 @@ M.plugins = {
|
||||||
vim_matchup = true, -- % operator enhancements
|
vim_matchup = true, -- % operator enhancements
|
||||||
cmp = true,
|
cmp = true,
|
||||||
nvimtree = true,
|
nvimtree = true,
|
||||||
|
autopairs = true,
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
lspconfig = {
|
lspconfig = {
|
||||||
|
|
|
@ -10,6 +10,9 @@ M.autopairs = function()
|
||||||
end
|
end
|
||||||
|
|
||||||
autopairs.setup()
|
autopairs.setup()
|
||||||
|
|
||||||
|
-- not needed if you disable cmp, the above var related to cmp tooo! override default config for autopairs
|
||||||
|
|
||||||
autopairs_completion.setup {
|
autopairs_completion.setup {
|
||||||
map_complete = true, -- insert () func completion
|
map_complete = true, -- insert () func completion
|
||||||
map_cr = true,
|
map_cr = true,
|
||||||
|
|
|
@ -204,7 +204,7 @@ return packer.startup(function()
|
||||||
-- misc plugins
|
-- misc plugins
|
||||||
use {
|
use {
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
disable = not status.cmp,
|
disable = not status.autopairs,
|
||||||
after = "nvim-cmp",
|
after = "nvim-cmp",
|
||||||
config = override_req("nvim_autopairs", "(plugins.configs.others).autopairs()"),
|
config = override_req("nvim_autopairs", "(plugins.configs.others).autopairs()"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue