aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/health.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua
index e2896cd03..9eeb99147 100644
--- a/lua/nvim-treesitter/health.lua
+++ b/lua/nvim-treesitter/health.lua
@@ -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