Use fullpath to tree-sitter executable to avoid using one from NPM

This commit is contained in:
Stephan Seitz 2021-03-30 19:30:16 +02:00 committed by Stephan Seitz
parent 0684124a71
commit 7b1d557c80

View file

@ -203,7 +203,7 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync,
end
vim.list_extend(command_list, {
{
cmd = 'tree-sitter',
cmd = vim.fn.exepath('tree-sitter'),
info = 'Generating source files from grammar.js...',
err = 'Error during "tree-sitter generate"',
opts = {