From 1f087c91f5ca76a2257b855d72d371a2b5302986 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Fri, 24 Mar 2023 03:36:30 +0100 Subject: fix(health): check required neovim version (#4330) * fix(health): check required neovim version * fixup(health)!: require v0.8.3 for is_in_node_range * fixup(readme)!: always prefer latest neovim --- lua/nvim-treesitter/health.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua index 40ec3448e..7edd77ed8 100644 --- a/lua/nvim-treesitter/health.lua +++ b/lua/nvim-treesitter/health.lua @@ -16,8 +16,8 @@ local NVIM_TREESITTER_MINIMUM_ABI = 13 local function install_health() health.report_start "Installation" - if fn.has "nvim-0.7" == 0 then - health.report_error "Nvim-treesitter requires Neovim 0.7.0+" + if fn.has "nvim-0.8.3" ~= 1 then + health.report_error "Nvim-treesitter requires Neovim 0.8.3+" end if fn.executable "tree-sitter" == 0 then -- cgit v1.2.3-70-g09d2