From a1fc3d39da170eaae11f277430cbeab58e5606aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sun, 26 Mar 2023 18:29:32 +0200 Subject: [PATCH] feat(nvim): add ( after completion of function --- modules/programs/nvim/plugins/nvim-autopairs.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/programs/nvim/plugins/nvim-autopairs.lua b/modules/programs/nvim/plugins/nvim-autopairs.lua index 4de6add..540723f 100644 --- a/modules/programs/nvim/plugins/nvim-autopairs.lua +++ b/modules/programs/nvim/plugins/nvim-autopairs.lua @@ -1 +1,6 @@ require("nvim-autopairs").setup() + +-- If you want insert `(` after select function or method item +local cmp_autopairs = require("nvim-autopairs.completion.cmp") +local cmp = require("cmp") +cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())