From 7a7a56d0f10133c94627e8c155b9a2c8b1744837 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Mon, 8 Mar 2021 12:52:59 +0100 Subject: Add explanation why some parsers need to be generated from source now --- lua/nvim-treesitter/install.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/nvim-treesitter/install.lua') 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) -- cgit v1.2.3