mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
Fix 1359: nil check for version in health-check
This commit is contained in:
parent
99ea1fc22a
commit
ee2266993b
1 changed files with 4 additions and 1 deletions
|
|
@ -26,7 +26,10 @@ local function install_health()
|
||||||
local result = handle:read("*a")
|
local result = handle:read("*a")
|
||||||
handle:close()
|
handle:close()
|
||||||
local version = vim.split(result,'\n')[1]:match('[^tree%psitter].*')
|
local version = vim.split(result,'\n')[1]:match('[^tree%psitter].*')
|
||||||
health_ok('`tree-sitter` found '..version..' (parser generator, only needed for :TSInstallFromGrammar)')
|
health_ok(
|
||||||
|
"`tree-sitter` found " ..
|
||||||
|
(version or "(unknown version)") .. " (parser generator, only needed for :TSInstallFromGrammar)"
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
if fn.executable('node') == 0 then
|
if fn.executable('node') == 0 then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue