kickstart.nvim/lua/custom/plugins/autopairs.lua

13 lines
415 B
Lua
Raw Normal View History

2024-01-12 17:23:52 +01:00
return {
2024-01-24 11:57:14 +01:00
'windwp/nvim-autopairs',
2024-01-12 17:23:52 +01:00
-- Optional dependency
dependencies = { 'hrsh7th/nvim-cmp' },
config = function()
2024-01-24 11:57:14 +01:00
require('nvim-autopairs').setup {}
2024-01-12 17:23:52 +01:00
-- If you want to automatically add `(` after selecting a function or method
2024-01-24 11:57:14 +01:00
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
local cmp = require 'cmp'
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
2024-01-12 17:23:52 +01:00
end,
}