From edd942a9622ab9057c4ec2c70bafadf16c2ed7aa Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 31 Mar 2021 10:59:06 +0200 Subject: Add tree-sitter ABI version to health check --- lua/nvim-treesitter/health.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua') diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua index 86784a5ac..b1c1a8f7a 100644 --- a/lua/nvim-treesitter/health.lua +++ b/lua/nvim-treesitter/health.lua @@ -13,6 +13,7 @@ local M = {} local function install_health() health_start('Installation') + if fn.executable('tree-sitter') == 0 then health_warn('`tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar,'.. ' not required for :TSInstall)') @@ -40,6 +41,9 @@ local function install_health() else health_ok('`cc` executable found.') end + if vim.treesitter.language_version then + print('\nNeovim was compiled with tree-sitter runtime ABI version '..vim.treesitter.language_version..'.') + end end local function query_status(lang, query_group) -- cgit v1.2.3-70-g09d2