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