mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
feat!: drop support for Nvim 0.11
This commit is contained in:
committed by
Christian Clason
parent
90cd6580e7
commit
c82bf96f0a
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user