diff --git a/lua/nvim-treesitter/config.lua b/lua/nvim-treesitter/config.lua index 97fca649..3ea96f36 100644 --- a/lua/nvim-treesitter/config.lua +++ b/lua/nvim-treesitter/config.lua @@ -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 diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua index 2fcaea5a..7a54dd0f 100644 --- a/lua/nvim-treesitter/health.lua +++ b/lua/nvim-treesitter/health.lua @@ -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