diff options
| author | kiyan <yazdani.kiyan@protonmail.com> | 2021-03-16 18:58:36 +0100 |
|---|---|---|
| committer | kiyan <yazdani.kiyan@protonmail.com> | 2021-03-16 18:58:36 +0100 |
| commit | 2f81d4ad2731c87e6dd80b9fac1855c2ee6b4784 (patch) | |
| tree | ce3af302742c65a7046844735d6315c1232fcb25 /lua | |
| parent | f392f13af41444920ebbb0a41f07a4843761abe6 (diff) | |
hotfix npm check
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 7380934e..65c47265 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 |
