diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-10-04 21:30:47 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2020-10-04 21:48:25 +0200 |
| commit | 9f5237b6c5e70b66437c4d989f0394be2ab5f72b (patch) | |
| tree | 831a3e2857307ae4f22d2f4a4093760ba5468d6f | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-treesitter-9f5237b6c5e70b66437c4d989f0394be2ab5f72b.tar nvim-treesitter-9f5237b6c5e70b66437c4d989f0394be2ab5f72b.tar.gz nvim-treesitter-9f5237b6c5e70b66437c4d989f0394be2ab5f72b.tar.bz2 nvim-treesitter-9f5237b6c5e70b66437c4d989f0394be2ab5f72b.tar.lz nvim-treesitter-9f5237b6c5e70b66437c4d989f0394be2ab5f72b.tar.xz nvim-treesitter-9f5237b6c5e70b66437c4d989f0394be2ab5f72b.tar.zst nvim-treesitter-9f5237b6c5e70b66437c4d989f0394be2ab5f72b.zip | |
Fix: fallback git-installation (list of commands is expected)
| -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 |
