mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
fixup: adapt to Nvim 0.11 deprecations
This commit is contained in:
parent
7b6aefa69a
commit
00a8cfd562
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ function M.require_language(lang, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.flatten(t)
|
function M.flatten(t)
|
||||||
if vim.fn.has "nvim-0.10" == 1 then
|
if vim.fn.has "nvim-0.11" == 1 then
|
||||||
return vim.iter(t):flatten():totable()
|
return vim.iter(t):flatten():totable()
|
||||||
else
|
else
|
||||||
return vim.tbl_flatten(t)
|
return vim.tbl_flatten(t)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue