Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ External Requirements:
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
- [ripgrep](https://github.com/BurntSushi/ripgrep#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)
- 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
Expand Down
12 changes: 10 additions & 2 deletions lua/kickstart/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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

Expand Down