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())