mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
Add explanation why some parsers need to be generated from source now
This commit is contained in:
parent
dbeebe94d8
commit
7a7a56d0f1
1 changed files with 4 additions and 0 deletions
|
|
@ -162,6 +162,10 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync,
|
|||
|
||||
if generate_from_grammar and vim.fn.executable('tree-sitter') ~= 1 then
|
||||
api.nvim_err_writeln('tree-sitter CLI not found: `tree-sitter` is not executable!')
|
||||
if repo.requires_generate_from_grammar then
|
||||
api.nvim_err_writeln('tree-sitter CLI is needed because `'..lang..'` is marked that it needs '
|
||||
..'to be generated from the grammar definitions to be compatible with nvim!')
|
||||
end
|
||||
return
|
||||
end
|
||||
local cc = shell.select_executable(M.compilers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue