fix: add ` and $ on ignored next characters

fix #285
This commit is contained in:
zztrieuzz 2022-11-24 06:24:11 +07:00 committed by windwp
parent 6b6e35fc9a
commit ccbf4098e8
3 changed files with 8 additions and 2 deletions

View File

@ -34,7 +34,7 @@ local disable_filetype = { "TelescopePrompt" }
local disable_in_macro = false -- disable when recording or executing a macro
local disable_in_visualblock = false -- disable when insert after visual block mode
local disable_in_replace_mode = true
local ignored_next_char = [=[[%w%%%'%[%"%.]]=]
local ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=]
local enable_moveright = true
local enable_afterquote = true -- add bracket pairs after quote
local enable_check_bracket_line = true --- check bracket in same line

View File

@ -20,7 +20,7 @@ local default = {
disable_in_macro = false,
disable_in_visualblock = false,
disable_in_replace_mode = true,
ignored_next_char = [=[[%w%%%'%[%"%.]]=],
ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=],
break_undo = true,
check_ts = false,
enable_moveright = true,

View File

@ -689,6 +689,12 @@ local data = {
[[}]],
},
},
{
name='open bracker on back tick',
key = [[(]],
before = [[ |`abcd`]],
after = [[ (`abcd`) ]]
}
}
local run_data = _G.Test_filter(data)