diff --git a/.config/nvim/lua/plugins/cmpconf.lua b/.config/nvim/lua/plugins/cmpconf.lua index f98f018..9ed07db 100644 --- a/.config/nvim/lua/plugins/cmpconf.lua +++ b/.config/nvim/lua/plugins/cmpconf.lua @@ -18,7 +18,6 @@ local M = { 'hrsh7th/cmp-path', 'petertriho/cmp-git', 'hrsh7th/cmp-nvim-lsp-signature-help', - 'windwp/nvim-autopairs', { 'zbirenbaum/copilot.lua', config = function() @@ -245,16 +244,6 @@ M.config = function() }), }) - require('nvim-autopairs').setup { - check_ts = true, -- treesitter integration - enable_check_bracket_line = false, - disable_in_macro = true, - disable_filetype = { 'fzf', 'guihua', 'guihua_rust', 'clap_input' }, - } - -- If you want insert `(` after select function or method item - local cmp_autopairs = require 'nvim-autopairs.completion.cmp' - cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done { map_char = { tex = '' } }) - require('luasnip.loaders.from_vscode').lazy_load() end diff --git a/.config/nvim/lua/plugins/mini.lua b/.config/nvim/lua/plugins/mini.lua index 252ea53..df57d10 100644 --- a/.config/nvim/lua/plugins/mini.lua +++ b/.config/nvim/lua/plugins/mini.lua @@ -125,6 +125,12 @@ local M = { } end, }, + { + the_king .. 'pairs', + version = false, + event = "InsertEnter", + opts = {} + }, { the_king .. 'operators', version = false,