cmp and autopairs

This commit is contained in:
2026-05-29 14:52:27 +02:00
parent 67f0d9f78c
commit 5eb695beaa
7 changed files with 123 additions and 125 deletions
+25 -2
View File
@@ -1,3 +1,26 @@
local npairs = require('nvim-autopairs')
local M = {}
npairs.setup({})
M = {
disable_filetype = {
"TelescopePrompt",
"spectre_panel",
"snacks_picker_input",
},
disable_in_macro = true,
disable_in_visualblock = false,
disable_in_replace_mode = true,
ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=],
enable_moveright = true,
enable_afterquote = true,
enable_check_bracket_line = true,
enable_bracket_in_quote = true,
enable_abbr = false,
break_undo = true,
check_ts = false,
map_cr = true,
map_bs = true,
map_c_h = false,
map_c_w = false,
}
return M