Merge 83c44edb73 into e79572c9e6
This commit is contained in:
commit
2850b4fc48
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue