This commit is contained in:
Safi2099 2026-02-07 06:41:04 +00:00 committed by GitHub
commit 2850b4fc48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View File

@ -32,6 +32,8 @@ External Requirements:
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`) - Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation), - [ripgrep](https://github.com/BurntSushi/ripgrep#installation),
[fd-find](https://github.com/sharkdp/fd#installation) [fd-find](https://github.com/sharkdp/fd#installation)
- [`tree-sitter-cli`](https://github.com/tree-sitter/tree-sitter/blob/master/crates/cli/README.md) - For syntax highlighting (required by `nvim-treesitter`)
- [`node`](https://nodejs.org/en/download) - Required by `tree-sitter-cli` to generate parsers
- Clipboard tool (xclip/xsel/win32yank or other depending on the platform) - Clipboard tool (xclip/xsel/win32yank or other depending on the platform)
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons - A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
- if you have it set `vim.g.have_nerd_font` in `init.lua` to true - if you have it set `vim.g.have_nerd_font` in `init.lua` to true

View File

@ -20,8 +20,8 @@ local check_version = function()
end end
local check_external_reqs = function() local check_external_reqs = function()
-- Basic utils: `git`, `make`, `unzip` -- Basic utils: `git`, `make`, `unzip`, `node`
for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do for _, exe in ipairs { 'git', 'make', 'unzip', 'rg', 'node' } do
local is_executable = vim.fn.executable(exe) == 1 local is_executable = vim.fn.executable(exe) == 1
if is_executable then if is_executable then
vim.health.ok(string.format("Found executable: '%s'", exe)) vim.health.ok(string.format("Found executable: '%s'", exe))
@ -30,6 +30,14 @@ local check_external_reqs = function()
end end
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 return true
end end