aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-03-31 10:59:06 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2021-03-31 19:01:21 +0200
commitedd942a9622ab9057c4ec2c70bafadf16c2ed7aa (patch)
treec0e6195b3949bb69eef3c0791e6aa40a68bec47b /lua
parentImport highlights.scm from tree-sitter-zig (diff)
downloadnvim-treesitter-edd942a9622ab9057c4ec2c70bafadf16c2ed7aa.tar
nvim-treesitter-edd942a9622ab9057c4ec2c70bafadf16c2ed7aa.tar.gz
nvim-treesitter-edd942a9622ab9057c4ec2c70bafadf16c2ed7aa.tar.bz2
nvim-treesitter-edd942a9622ab9057c4ec2c70bafadf16c2ed7aa.tar.lz
nvim-treesitter-edd942a9622ab9057c4ec2c70bafadf16c2ed7aa.tar.xz
nvim-treesitter-edd942a9622ab9057c4ec2c70bafadf16c2ed7aa.tar.zst
nvim-treesitter-edd942a9622ab9057c4ec2c70bafadf16c2ed7aa.zip
Add tree-sitter ABI version to health check
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 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)