diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2026-04-01 10:42:59 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2026-04-01 10:42:59 +0200 |
| commit | 78e5944396f57b98109a108a7d05533fe10b176d (patch) | |
| tree | 3e92983138862104c5e41adc4c53ca0d0e91e5d6 | |
| parent | tests: add stable Nvim (diff) | |
| download | nvim-treesitter-feat/stable.tar nvim-treesitter-feat/stable.tar.gz nvim-treesitter-feat/stable.tar.bz2 nvim-treesitter-feat/stable.tar.lz nvim-treesitter-feat/stable.tar.xz nvim-treesitter-feat/stable.tar.zst nvim-treesitter-feat/stable.zip | |
feat!: drop support for Nvim 0.11feat/stable
| -rw-r--r-- | lua/nvim-treesitter/config.lua | 8 | ||||
| -rw-r--r-- | lua/nvim-treesitter/health.lua | 4 |
2 files changed, 3 insertions, 9 deletions
diff --git a/lua/nvim-treesitter/config.lua b/lua/nvim-treesitter/config.lua index 97fca649f..3ea96f36d 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 2fcaea5a0..7a54dd0fc 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 |
