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