mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
Add tree-sitter ABI version to health check
This commit is contained in:
parent
4821bde80a
commit
edd942a962
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ local M = {}
|
||||||
|
|
||||||
local function install_health()
|
local function install_health()
|
||||||
health_start('Installation')
|
health_start('Installation')
|
||||||
|
|
||||||
if fn.executable('tree-sitter') == 0 then
|
if fn.executable('tree-sitter') == 0 then
|
||||||
health_warn('`tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar,'..
|
health_warn('`tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar,'..
|
||||||
' not required for :TSInstall)')
|
' not required for :TSInstall)')
|
||||||
|
|
@ -40,6 +41,9 @@ local function install_health()
|
||||||
else
|
else
|
||||||
health_ok('`cc` executable found.')
|
health_ok('`cc` executable found.')
|
||||||
end
|
end
|
||||||
|
if vim.treesitter.language_version then
|
||||||
|
print('\nNeovim was compiled with tree-sitter runtime ABI version '..vim.treesitter.language_version..'.')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function query_status(lang, query_group)
|
local function query_status(lang, query_group)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue