feat!: drop support for Nvim 0.11

This commit is contained in:
Christian Clason
2026-04-01 10:42:59 +02:00
committed by Christian Clason
parent 90cd6580e7
commit c82bf96f0a
2 changed files with 3 additions and 9 deletions

View File

@@ -168,13 +168,7 @@ function M.norm_languages(languages, skip)
end
end
-- TODO(clason): remove Nvim 0.11 compat
if vim.list then
return vim.list.unique(languages)
else
table.sort(languages)
return vim.fn.uniq(languages) --[=[@as string[] ]=]
end
return vim.list.unique(languages)
end
return M

View File

@@ -24,8 +24,8 @@ local function install_health()
health.start('Requirements')
do -- nvim check
if vim.fn.has('nvim-0.11') ~= 1 then
health.error('Nvim-treesitter requires Neovim 0.11.0 or later.')
if vim.fn.has('nvim-0.12') ~= 1 then
health.error('Nvim-treesitter requires Neovim 0.12.0 or later.')
end
if vim.treesitter.language_version >= NVIM_TREESITTER_MINIMUM_ABI then