exchange nvim-autopairs with mini.pairs

This commit is contained in:
Baipyrus 2024-05-31 17:00:16 +02:00
parent 20852d016e
commit 0d0d725de1
3 changed files with 3 additions and 17 deletions

View File

@ -1,16 +0,0 @@
-- autopairs
-- https://github.com/windwp/nvim-autopairs
return {
'windwp/nvim-autopairs',
event = 'InsertEnter',
-- 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,
}

View File

@ -17,6 +17,9 @@ return {
-- - sr)' - [S]urround [R]eplace [)] [']
require('mini.surround').setup()
-- Automatically add pairs of characters
require('mini.pairs').setup()
-- ... and there is more!
-- Check out: https://github.com/echasnovski/mini.nvim
end,

View File

@ -69,7 +69,6 @@ require('lazy').setup({
require 'kickstart.plugins.debug',
require 'kickstart.plugins.indent_line',
require 'kickstart.plugins.lint',
require 'kickstart.plugins.autopairs',
-- require 'kickstart.plugins.neo-tree',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`