config.nvim/lua/plugins/nvim-autopairs.lua
juan 9087e563d8
Feat | Plugin update, speed optimizations.
coq is bloated and does not play well with other plugins, nvim-cmp
is a better solution despite it is slightly slower.

I optimized the startup sequence, start time: 80ms -> 120ms -> 65ms

Next up, I will try to work on my zk workflow.
2022-08-07 21:00:11 +08:00

9 lines
319 B
Lua

local npairs = require('nvim-autopairs')
npairs.setup({map_bs = true, map_cr = true, map_c_w = true})
-- 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())