mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
make autopairs overridable | fix (#1154)
This commit is contained in:
parent
70390c6e8d
commit
fd96f4ddbd
1 changed files with 4 additions and 1 deletions
|
@ -10,11 +10,14 @@ M.autopairs = function()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
autopairs.setup {
|
local options = {
|
||||||
fast_wrap = {},
|
fast_wrap = {},
|
||||||
disable_filetype = { "TelescopePrompt", "vim" },
|
disable_filetype = { "TelescopePrompt", "vim" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options = load_override(options, "windwp/nvim-autopairs")
|
||||||
|
autopairs.setup(options)
|
||||||
|
|
||||||
local cmp_autopairs = require "nvim-autopairs.completion.cmp"
|
local cmp_autopairs = require "nvim-autopairs.completion.cmp"
|
||||||
|
|
||||||
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
|
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
|
||||||
|
|
Loading…
Reference in a new issue