From 871d6d9f92aa7324c6cb35b5c6c8809a0d25185b Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Thu, 3 Jun 2021 00:26:25 +0200 Subject: fix: return when no `node` found during installation Ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/1324#issuecomment-853418596 --- lua/nvim-treesitter/install.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua') diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 6398c7c7e..51e2188f7 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -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 -- cgit v1.2.3-70-g09d2