added plugins

This commit is contained in:
Max Reed 2024-11-20 10:15:47 +01:00
parent 2ba39c6973
commit 83cf11d0ad
13 changed files with 338 additions and 0 deletions

View file

@ -0,0 +1,14 @@
-- File: lua/custom/plugins/autopairs.lua
return {
'windwp/nvim-autopairs',
-- Optional dependency
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,
}