mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
chore: print compiler version in healthcheck
This commit is contained in:
parent
8ce13aa6f7
commit
44d4d07dbf
1 changed files with 8 additions and 1 deletions
|
|
@ -65,7 +65,14 @@ local function install_health()
|
|||
.. ' or set the environment variable CC or `require"nvim-treesitter.install".compilers` explicitly!',
|
||||
})
|
||||
else
|
||||
health_ok("`" .. cc .. "` executable found. Selected from " .. vim.inspect(install.compilers))
|
||||
local version = vim.fn.systemlist(cc .. (cc == "cl" and "" or " --version"))[1]
|
||||
health_ok(
|
||||
"`"
|
||||
.. cc
|
||||
.. "` executable found. Selected from "
|
||||
.. vim.inspect(install.compilers)
|
||||
.. (version and ("\nVersion: " .. version) or "")
|
||||
)
|
||||
end
|
||||
if vim.treesitter.language_version then
|
||||
if vim.treesitter.language_version >= NVIM_TREESITTER_MINIMUM_ABI then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue