2024-03-12 09:02:53 +05:45
|
|
|
return {
|
|
|
|
|
'windwp/nvim-autopairs',
|
2024-09-18 06:30:46 +05:45
|
|
|
event = 'InsertEnter',
|
2024-09-19 21:03:14 +05:45
|
|
|
-- Optional dependency
|
|
|
|
|
dependencies = { 'hrsh7th/nvim-cmp' },
|
2024-03-12 09:02:53 +05:45
|
|
|
config = function()
|
2024-09-19 21:03:14 +05:45
|
|
|
require('nvim-autopairs').setup {}
|
|
|
|
|
-- If you want to automatically add `(` after selecting a function or method
|
2024-03-12 09:02:53 +05:45
|
|
|
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
|
|
|
|
|
local cmp = require 'cmp'
|
|
|
|
|
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
|
|
|
|
|
end,
|
|
|
|
|
}
|