aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-04-16 10:35:06 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-04-16 11:13:32 +0200
commita189323454d1215c682c7ad7db3e6739d26339c4 (patch)
treecbc135ac909412eeeb429bee5fd5c93f980e8173 /lua
parentci: bump treesitter to 0.20.6 (diff)
downloadnvim-treesitter-a189323454d1215c682c7ad7db3e6739d26339c4.tar
nvim-treesitter-a189323454d1215c682c7ad7db3e6739d26339c4.tar.gz
nvim-treesitter-a189323454d1215c682c7ad7db3e6739d26339c4.tar.bz2
nvim-treesitter-a189323454d1215c682c7ad7db3e6739d26339c4.tar.lz
nvim-treesitter-a189323454d1215c682c7ad7db3e6739d26339c4.tar.xz
nvim-treesitter-a189323454d1215c682c7ad7db3e6739d26339c4.tar.zst
nvim-treesitter-a189323454d1215c682c7ad7db3e6739d26339c4.zip
chore: bump minimal Nvim version to 0.7 and check
Checks minimal version in `:checkhealth nvim-treesitter` Also recommend nightlies
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/health.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua
index 8cbe0db1c..aa2b35b88 100644
--- a/lua/nvim-treesitter/health.lua
+++ b/lua/nvim-treesitter/health.lua
@@ -19,6 +19,10 @@ local NVIM_TREESITTER_MINIMUM_ABI = 13
local function install_health()
health_start "Installation"
+ if fn.has "nvim-0.7" == 0 then
+ health_error "Nvim-treesitter requires Neovim 0.7.0+"
+ end
+
if fn.executable "tree-sitter" == 0 then
health_warn(
"`tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar,"