From 7b1d557c80b63a0c063f73ccd6f430cff528a282 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Tue, 30 Mar 2021 19:30:16 +0200 Subject: Use fullpath to tree-sitter executable to avoid using one from NPM --- lua/nvim-treesitter/install.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 817514115..7d491549c 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -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 = { -- cgit v1.2.3-70-g09d2