aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-treesitter/install.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 3fbd74722..67a31a85a 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -147,7 +147,14 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync)
info = 'Downloading...',
err = 'Error during download, please verify your internet connection',
opts = {
- args = { 'clone', '--single-branch', '--branch', 'master', '--depth', '1', repo.url, project_name },
+ args = {
+ 'clone',
+ '--single-branch',
+ '--branch', repo.branch or 'master',
+ '--depth', '1',
+ repo.url,
+ project_name
+ },
cwd = cache_folder,
},
},