mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix: vim.tbl_flatten is deprecated
This commit is contained in:
parent
5a38df5627
commit
054080bf59
2 changed files with 2 additions and 2 deletions
|
|
@ -183,7 +183,7 @@ function Runner:whole_file(dirs, opts)
|
|||
assert.is.same(1, vim.fn.isdirectory(dir.filename))
|
||||
return dir.filename
|
||||
end, dirs)
|
||||
local files = require('nvim-treesitter.compat').flatten(vim.tbl_map(scan_dir, dirs))
|
||||
local files = vim.iter(vim.tbl_map(scan_dir, dirs)):flatten():totable()
|
||||
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