diff --git a/lua/kickstart/health.lua b/lua/kickstart/health.lua index ca684516..6fabca7e 100644 --- a/lua/kickstart/health.lua +++ b/lua/kickstart/health.lua @@ -20,8 +20,8 @@ local check_version = function() end local check_external_reqs = function() - -- Basic utils: `git`, `make`, `unzip` - for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do + -- Basic utils: `git`, `make`, `unzip`, `node` + for _, exe in ipairs { 'git', 'make', 'unzip', 'rg', 'node' } do local is_executable = vim.fn.executable(exe) == 1 if is_executable then vim.health.ok(string.format("Found executable: '%s'", exe)) @@ -30,6 +30,14 @@ local check_external_reqs = function() end end + -- Special check for tree-sitter CLI (handles naming variations) + local ts_exe = vim.fn.executable 'tree-sitter-cli' == 1 and 'tree-sitter-cli' or 'tree-sitter' + if vim.fn.executable(ts_exe) == 1 then + vim.health.ok(string.format("Found executable: '%s'", ts_exe)) + else + vim.health.warn(string.format("Could not find executable: '%s'", ts_exe)) + end + return true end