diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-03-08 12:52:59 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-03-16 18:52:43 +0100 |
| commit | 7a7a56d0f10133c94627e8c155b9a2c8b1744837 (patch) | |
| tree | f8ab968ed4103cc3ff7810c15e56d192f4eeb1c8 /lua/nvim-treesitter/install.lua | |
| parent | dbeebe94d89d2cbada69037dfba215070170400e (diff) | |
Add explanation why some parsers need to be generated from source now
Diffstat (limited to 'lua/nvim-treesitter/install.lua')
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 74f10026..655e82a3 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -162,6 +162,10 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync, if generate_from_grammar and vim.fn.executable('tree-sitter') ~= 1 then api.nvim_err_writeln('tree-sitter CLI not found: `tree-sitter` is not executable!') + if repo.requires_generate_from_grammar then + api.nvim_err_writeln('tree-sitter CLI is needed because `'..lang..'` is marked that it needs ' + ..'to be generated from the grammar definitions to be compatible with nvim!') + end return end local cc = shell.select_executable(M.compilers) |
