aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua2
1 files changed, 1 insertions, 1 deletions
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 = {