aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/common.lua')
-rw-r--r--tests/indent/common.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/indent/common.lua b/tests/indent/common.lua
index 1ddd91a40..6cfedafff 100644
--- a/tests/indent/common.lua
+++ b/tests/indent/common.lua
@@ -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()