diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-03-07 17:57:18 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-03-16 18:52:43 +0100 |
| commit | c573cdd0a96fcc4c5b0ef2e1a382fa08ddc696fb (patch) | |
| tree | 553fd44fc93ba4f664ea012cb31f450b21066016 /lua/nvim-treesitter | |
| parent | 4395783990e0533087a6833b7f4e79009265f87a (diff) | |
Add CI hack
Diffstat (limited to 'lua/nvim-treesitter')
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 09eeb1d8..fbc264c0 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -153,6 +153,11 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync, end local parser_lib_name = install_folder..path_sep..lang..".so" + if repo.requires_generate_from_grammar ~= 1 and vim.env.CI then + print("Skipping language "..lang.." on CI (requires npm)!") + return + end + generate_from_grammar = repo.requires_generate_from_grammar or generate_from_grammar if generate_from_grammar and vim.fn.executable('tree-sitter') ~= 1 then |
