add parenthesis for function completion

This commit is contained in:
siduck76 2021-07-05 23:27:41 +05:30
parent 7db1fb75b9
commit 8b4118605b
1 changed files with 7 additions and 0 deletions

View File

@ -53,6 +53,12 @@ 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 = {
@ -106,6 +112,7 @@ return packer.startup(
-- misc plugins -- misc plugins
use { use {
"windwp/nvim-autopairs", "windwp/nvim-autopairs",
after = "nvim-compe",
event = "InsertEnter", event = "InsertEnter",
config = function() config = function()
require("nvim-autopairs").setup() require("nvim-autopairs").setup()