diff options
| author | AdnoC <adam.r.cutler@gmail.com> | 2021-01-21 21:11:43 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-04-15 16:56:49 +0200 |
| commit | e65049bd37038f1abbedc7c204a048087cab5f80 (patch) | |
| tree | 45926bb4f833cd9aaacf89bea1d0218a1f7acee4 /lua | |
| parent | use locked revision when downloading via git (diff) | |
| download | nvim-treesitter-e65049bd37038f1abbedc7c204a048087cab5f80.tar nvim-treesitter-e65049bd37038f1abbedc7c204a048087cab5f80.tar.gz nvim-treesitter-e65049bd37038f1abbedc7c204a048087cab5f80.tar.bz2 nvim-treesitter-e65049bd37038f1abbedc7c204a048087cab5f80.tar.lz nvim-treesitter-e65049bd37038f1abbedc7c204a048087cab5f80.tar.xz nvim-treesitter-e65049bd37038f1abbedc7c204a048087cab5f80.tar.zst nvim-treesitter-e65049bd37038f1abbedc7c204a048087cab5f80.zip | |
use utils.join_path
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/shell_command_selectors.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua index dea96db77..da99068b1 100644 --- a/lua/nvim-treesitter/shell_command_selectors.lua +++ b/lua/nvim-treesitter/shell_command_selectors.lua @@ -173,13 +173,7 @@ function M.select_download_commands(repo, project_name, cache_folder, revision) M.select_install_rm_cmd(cache_folder, project_name..'-tmp') } else - local git_folder - if is_windows then - git_folder = cache_folder ..'\\'.. project_name - else - git_folder = cache_folder ..'/'.. project_name - end - + local git_folder = utils.join_path(cache_folder, project_name) local clone_error = 'Error during download, please verify your internet connection' if is_windows then clone_error = clone_error .. ". If on Windows you may need to enable Developer mode" |
