mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
use utils.join_path
This commit is contained in:
parent
4d2813f03b
commit
e65049bd37
1 changed files with 1 additions and 7 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue