mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix: adapt to Nvim 0.11 deprecations
This commit is contained in:
parent
19ac9e8b5c
commit
3d268f9db4
5 changed files with 20 additions and 7 deletions
|
|
@ -180,7 +180,7 @@ function Runner:whole_file(dirs, opts)
|
|||
assert.is.same(1, vim.fn.isdirectory(dir.filename))
|
||||
return dir.filename
|
||||
end, dirs)
|
||||
local files = vim.tbl_flatten(vim.tbl_map(scan_dir, dirs))
|
||||
local files = require("nvim-treesitter.compat").flatten(vim.tbl_map(scan_dir, dirs))
|
||||
for _, file in ipairs(files) do
|
||||
local relpath = Path:new(file):make_relative(self.base_dir.filename)
|
||||
self.it(relpath, function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue