Skip to content

Commit

Permalink
feat(nvim): add autopairs plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dgokcin committed Jan 9, 2024
1 parent 25a651e commit ff2ab16
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nvim/lua/custom/plugins/autopairs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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,
}

0 comments on commit ff2ab16

Please sign in to comment.