diff options
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index ebb0b14fc..3f9125c34 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -224,20 +224,22 @@ local function select_download_commands(repo, project_name, cache_folder, revisi } else return { - cmd = 'git', - info = 'Downloading...', - err = 'Error during download, please verify your internet connection', - opts = { - args = { - 'clone', - '--single-branch', - '--branch', repo.branch or 'master', - '--depth', '1', - repo.url, - project_name + { + cmd = 'git', + info = 'Downloading...', + err = 'Error during download, please verify your internet connection', + opts = { + args = { + 'clone', + '--single-branch', + '--branch', repo.branch or 'master', + '--depth', '1', + repo.url, + project_name + }, + cwd = cache_folder, }, - cwd = cache_folder, - }, + } } end end |
