mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20: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")
|
||||
handle:close()
|
||||
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
|
||||
|
||||
if fn.executable('node') == 0 then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue