on master help sign in
fix: add ` and $ on ignored next characters
ccbf409zztrieuzz
README.md+1−1
@@ -34,7 +34,7 @@ local disable_filetype = { "TelescopePrompt" }
34local disable_in_macro = false -- disable when recording or executing a macro
34local disable_in_macro = false -- disable when recording or executing a macro
35local disable_in_visualblock = false -- disable when insert after visual block mode
35local disable_in_visualblock = false -- disable when insert after visual block mode
36local disable_in_replace_mode = true
36local disable_in_replace_mode = true
37−local ignored_next_char = [=[[%w%%%'%[%"%.]]=]
37+local ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=]
38local enable_moveright = true
38local enable_moveright = true
39local enable_afterquote = true -- add bracket pairs after quote
39local enable_afterquote = true -- add bracket pairs after quote
40local enable_check_bracket_line = true --- check bracket in same line
40local enable_check_bracket_line = true --- check bracket in same line
lua/nvim-autopairs.lua+1−1
@@ -20,7 +20,7 @@ local default = {
20 disable_in_macro = false,
20 disable_in_macro = false,
21 disable_in_visualblock = false,
21 disable_in_visualblock = false,
22 disable_in_replace_mode = true,
22 disable_in_replace_mode = true,
23− ignored_next_char = [=[[%w%%%'%[%"%.]]=],
23+ ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=],
24 break_undo = true,
24 break_undo = true,
25 check_ts = false,
25 check_ts = false,
26 enable_moveright = true,
26 enable_moveright = true,
tests/nvim-autopairs_spec.lua+6
@@ -689,6 +689,12 @@ local data = {
689 [[}]],
689 [[}]],
690 },
690 },
691 },
691 },
692+ {
693+ name='open bracker on back tick',
694+ key = [[(]],
695+ before = [[ |`abcd`]],
696+ after = [[ (`abcd`) ]]
697+ }
692}
698}
693
699
694local run_data = _G.Test_filter(data)
700local run_data = _G.Test_filter(data)