mirror of
https://github.com/ilyakooo0/nvim-autopairs.git
synced 2024-09-11 07:15:44 +03:00
fix moveright on quote
This commit is contained in:
parent
84c0c3159c
commit
1eaaeb145d
@ -128,7 +128,7 @@ cond.move_right = function ()
|
||||
end
|
||||
-- ("|") => (""|)
|
||||
-- "" |" " => "" "| "
|
||||
if utils.is_in_quote(opts.text, opts.col - 1, opts.char) then
|
||||
if utils.is_in_quote(opts.line, opts.col, opts.char) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
@ -154,6 +154,12 @@ local data = {
|
||||
after = [[("abcd"|)]]
|
||||
},
|
||||
|
||||
{
|
||||
name = "move right when inside quote" ,
|
||||
key = [["]],
|
||||
before = [[foo("|")]],
|
||||
after = [[foo(""|)]]
|
||||
},
|
||||
{
|
||||
name = "move right square bracket" ,
|
||||
key = [[)]],
|
||||
|
Loading…
Reference in New Issue
Block a user