fixup: adapt to Nvim 0.11 deprecations

This commit is contained in:
Christian Clason 2024-05-17 17:59:40 +02:00
parent 3d268f9db4
commit 7b6aefa69a

View file

@ -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)