We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51187e5 commit c545c5cCopy full SHA for c545c5c
lua/kickstart/plugins/autopairs.lua
@@ -0,0 +1,16 @@
1
+-- autopairs
2
+-- https://github.com/windwp/nvim-autopairs
3
+
4
+return {
5
+ 'windwp/nvim-autopairs',
6
+ event = 'InsertEnter',
7
+ -- Optional dependency
8
+ dependencies = { 'hrsh7th/nvim-cmp' },
9
+ config = function()
10
+ require('nvim-autopairs').setup {}
11
+ -- If you want to automatically add `(` after selecting a function or method
12
+ local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
13
+ local cmp = require 'cmp'
14
+ cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
15
+ end,
16
+ }
0 commit comments