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:
Stephan Seitz 2021-06-03 00:26:25 +02:00 committed by Stephan Seitz
parent 31f1125827
commit 871d6d9f92

View file

@ -203,6 +203,7 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync,
end
if generate_from_grammar and vim.fn.executable('node') ~= 1 then
api.nvim_err_writeln('Node JS not found: `node` is not executable!')
return
end
local cc = shell.select_executable(M.compilers)
if not cc then