diff --git a/tests/mock-treesitter/queries/lua/textobjects.scm b/tests/mock-treesitter/queries/lua/textobjects.scm index 1663d92f..5d531b8f 100644 --- a/tests/mock-treesitter/queries/lua/textobjects.scm +++ b/tests/mock-treesitter/queries/lua/textobjects.scm @@ -26,4 +26,4 @@ ((string) @string_offset (#offset! @string_offset 0 1 0 -2)) -(chunk [(function_declaration) (assignment_statement)]* @chunk.inner) @chunk.outer +((chunk) @chunk.inner @chunk.outer (#offset! @chunk.inner 1 0 -1 0)) diff --git a/tests/screenshots/tests-test_completion.lua---Signature-help---stylizes-markdown-with-concealed-characters b/tests/screenshots/tests-test_completion.lua---Signature-help---stylizes-markdown-with-concealed-characters index 0ef81255..6f30c2c6 100644 --- a/tests/screenshots/tests-test_completion.lua---Signature-help---stylizes-markdown-with-concealed-characters +++ b/tests/screenshots/tests-test_completion.lua---Signature-help---stylizes-markdown-with-concealed-characters @@ -13,7 +13,7 @@ --|---------|---------|---------|---------|---------|---------|----- 01|00000012222221333333333333333333333333333333333333333333333333333 02|44444444444444566666666666555555555555555555555555555555555555544 -03|4444444444444457777777778888889::::::9798888887;;;;;;978887779544 +03|4444444444444457777777778888889::::::9798888887;;;;;;97888;;;9544 04|44444444444444555555555555555555555555555555555555555555555555544 05|44444444444444444444444444444444444444444444444444444444444444444 06|44444444444444444444444444444444444444444444444444444444444444444 diff --git a/tests/test_completion.lua b/tests/test_completion.lua index 889e9900..774939cd 100644 --- a/tests/test_completion.lua +++ b/tests/test_completion.lua @@ -2118,7 +2118,7 @@ T['Signature help']['adjusts title'] = function() end T['Signature help']['stylizes markdown with concealed characters'] = function() - if child.fn.has('nvim-0.10') == 0 then MiniTest.skip('Lua highlighting is different on Neovim<0.10') end + if child.fn.has('nvim-0.12') == 0 then MiniTest.skip('Lua highlighting is different on Neovim<0.12') end child.set_size(10, 65) child.bo.filetype = 'lua' diff --git a/tests/test_surround.lua b/tests/test_surround.lua index caf398bb..3ba41898 100644 --- a/tests/test_surround.lua +++ b/tests/test_surround.lua @@ -477,7 +477,7 @@ T['gen_spec']['input']['treesitter()']['works with row-exclusive, col-0 end rang }]]) local lines = get_lines() - validate_find(lines, { 4, 0 }, { { 11, 2 }, { 13, 7 }, { 1, 0 }, { 2, 0 } }, type_keys, 'sf', 'c') + validate_find(lines, { 4, 0 }, { { 13, 0 }, { 13, 7 }, { 1, 0 }, { 1, 11 } }, type_keys, 'sf', 'c') end T['gen_spec']['input']['treesitter()']['respects plugin options'] = function()