mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
fix: return when no node found during installation
Ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/1324#issuecomment-853418596
This commit is contained in:
parent
31f1125827
commit
871d6d9f92
1 changed files with 1 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync,
|
||||||
end
|
end
|
||||||
if generate_from_grammar and vim.fn.executable('node') ~= 1 then
|
if generate_from_grammar and vim.fn.executable('node') ~= 1 then
|
||||||
api.nvim_err_writeln('Node JS not found: `node` is not executable!')
|
api.nvim_err_writeln('Node JS not found: `node` is not executable!')
|
||||||
|
return
|
||||||
end
|
end
|
||||||
local cc = shell.select_executable(M.compilers)
|
local cc = shell.select_executable(M.compilers)
|
||||||
if not cc then
|
if not cc then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue