2021-09-09 19:55:32 +08:00
|
|
|
local npairs = require('nvim-autopairs')
|
|
|
|
|
2022-08-07 21:00:11 +08:00
|
|
|
npairs.setup({map_bs = true, map_cr = true, map_c_w = true})
|
2022-04-03 23:22:30 +08:00
|
|
|
|
2022-08-07 21:00:11 +08: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())
|