nvim/after/plugin/autopairs.lua

8 lines
221 B
Lua
Raw Normal View History

2023-07-21 13:13:54 +00:00
-- 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()
)