refactor(tests): use auto commands instead of putting it in each test

This commit is contained in:
Oleksandr Smirnov 2025-03-23 18:49:49 +02:00
parent 9d734f114d
commit c0297ac1d6
No known key found for this signature in database
3 changed files with 9 additions and 5 deletions

View file

@ -81,7 +81,6 @@ function testutils.setup_test(fixture, child, pos)
testutils.writefile(tmp, fixtures.input)
child.cmd("silent edit " .. tmp)
child.lua "vim.treesitter.start()"
local bufnr = child.fn.bufnr(tmp)
if pos then