Skip to content

Commit

Permalink
mini pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Dec 9, 2024
1 parent 10b8ab4 commit 21b3590
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .config/nvim/lua/plugins/cmpconf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions .config/nvim/lua/plugins/mini.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ local M = {
}
end,
},
{
the_king .. 'pairs',
version = false,
event = "InsertEnter",
opts = {}
},
{
the_king .. 'operators',
version = false,
Expand Down

0 comments on commit 21b3590

Please sign in to comment.