aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdnoC <adam.r.cutler@gmail.com>2021-01-03 20:32:21 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2021-04-15 16:56:49 +0200
commit234557b95e37fecb3fb79e222dfe4134b5c32e5f (patch)
tree72bcfe176362240210c4f5f3ab979fd027b39bcb
parentstyle (diff)
downloadnvim-treesitter-234557b95e37fecb3fb79e222dfe4134b5c32e5f.tar
nvim-treesitter-234557b95e37fecb3fb79e222dfe4134b5c32e5f.tar.gz
nvim-treesitter-234557b95e37fecb3fb79e222dfe4134b5c32e5f.tar.bz2
nvim-treesitter-234557b95e37fecb3fb79e222dfe4134b5c32e5f.tar.lz
nvim-treesitter-234557b95e37fecb3fb79e222dfe4134b5c32e5f.tar.xz
nvim-treesitter-234557b95e37fecb3fb79e222dfe4134b5c32e5f.tar.zst
nvim-treesitter-234557b95e37fecb3fb79e222dfe4134b5c32e5f.zip
fix windows check
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index 9df209661..8c7963584 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -120,7 +120,6 @@ function M.select_mv_cmd(from, to, cwd)
end
function M.select_download_commands(repo, project_name, cache_folder, revision)
-<<<<<<< HEAD
local has_tar = vim.fn.executable('tar') == 1
local has_curl = vim.fn.executable('curl') == 1
@@ -128,11 +127,7 @@ function M.select_download_commands(repo, project_name, cache_folder, revision)
local is_gitlab = repo.url:find("gitlab.com", 1, true)
local is_windows = fn.hs('win32')
- if has_tar andhas_curl and (is_github or is_gitlab) and not is_windows then
-=======
- local has_tar = vim.fn.executable('tar') == 1 and not fn.hs('win32')
- if has_tar and vim.fn.executable('curl') == 1 and repo.url:find("github.com", 1, true) then
->>>>>>> 99a672f (style)
+ if has_tar and has_curl 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()