chore(autopairs): move () completion to autopairs plugin

This commit is contained in:
Radu C. Martin 2024-12-13 16:31:43 +01:00
parent 2f51d0d872
commit f34fb8cb46
2 changed files with 9 additions and 5 deletions

View file

@ -1,7 +1,15 @@
return {
'windwp/nvim-autopairs',
event = 'InsertEnter',
config = true,
dependencies = { 'hrsh7th/nvim-cmp' },
config = function()
require('nvim-autopairs').setup {}
-- If you want to automatically add `(` after selecting a function or method
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
local cmp = require 'cmp'
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
end,
-- use opts = {} for passing setup options
-- this is equivalent to setup({}) function
--