at main 498 B view raw
1-- autopairs 2-- https://github.com/windwp/nvim-autopairs 3 4return { 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}