From 8b4118605b8f372256ee9248b7d319e59b7d49dc Mon Sep 17 00:00:00 2001 From: siduck76 Date: Mon, 5 Jul 2021 23:27:41 +0530 Subject: [PATCH] add parenthesis for function completion --- lua/pluginList.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/pluginList.lua b/lua/pluginList.lua index 53ccbfb..093d5a9 100644 --- a/lua/pluginList.lua +++ b/lua/pluginList.lua @@ -53,6 +53,12 @@ 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 = { @@ -106,6 +112,7 @@ return packer.startup( -- misc plugins use { "windwp/nvim-autopairs", + after = "nvim-compe", event = "InsertEnter", config = function() require("nvim-autopairs").setup()