autopairs parenthesis autoinsert after function completion

This commit is contained in:
siduck76 2021-07-06 13:39:23 +05:30
parent 8b4118605b
commit b16c5a2f70

View File

@ -53,12 +53,6 @@ return packer.startup(
event = "InsertEnter",
config = function()
require("compe-completion").config()
require("nvim-autopairs.completion.compe").setup(
{
map_cr = true,
map_complete = true -- insert () func completion
}
)
end,
wants = {"LuaSnip"},
requires = {
@ -113,9 +107,14 @@ return packer.startup(
use {
"windwp/nvim-autopairs",
after = "nvim-compe",
event = "InsertEnter",
config = function()
require("nvim-autopairs").setup()
require("nvim-autopairs.completion.compe").setup(
{
map_cr = true,
map_complete = true -- insert () func completion
}
)
end
}