mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -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()
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue