From 2f81d4ad2731c87e6dd80b9fac1855c2ee6b4784 Mon Sep 17 00:00:00 2001 From: kiyan Date: Tue, 16 Mar 2021 18:58:36 +0100 Subject: hotfix npm check --- lua/nvim-treesitter/install.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 7380934e7..65c47265d 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -184,7 +184,7 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync, end if generate_from_grammar then if repo.generate_requires_npm then - if not vim.fn.executable('npm') ~= 1 then + if vim.fn.executable('npm') ~= 1 then api.nvim_err_writeln('`'..lang..'` requires NPM to be installed from grammar.js') return end -- cgit v1.2.3-70-g09d2