Add tree-sitter ABI version to health check

This commit is contained in:
Stephan Seitz 2021-03-31 10:59:06 +02:00 committed by Thomas Vigouroux
parent 4821bde80a
commit edd942a962

View file

@ -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)