mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Do not use builtin tar on Windows
Several parsers (typescript and ocaml specifically) contain symlinks in their repo. The tar built into Windows cannot handle them. So, on Windows just use git to download parsers.
This commit is contained in:
parent
d02caad890
commit
add6eaf181
1 changed files with 2 additions and 1 deletions
|
|
@ -123,8 +123,9 @@ function M.select_download_commands(repo, project_name, cache_folder, revision)
|
|||
|
||||
local is_github = repo.url:find("github.com", 1, true)
|
||||
local is_gitlab = repo.url:find("gitlab.com", 1, true)
|
||||
local is_windows = fn.hs('win32')
|
||||
|
||||
if vim.fn.executable('tar') == 1 and vim.fn.executable('curl') == 1 and (is_github or is_gitlab) then
|
||||
if vim.fn.executable('tar') == 1 and vim.fn.executable('curl') == 1 and (is_github or is_gitlab) and not is_windows then
|
||||
|
||||
revision = revision or repo.branch or "master"
|
||||
local path_sep = utils.get_path_sep()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue