ci: use main for bootstrap

This commit is contained in:
Folke Lemaitre 2024-07-04 18:05:36 +02:00
parent 1225f1dc60
commit 851b12034d
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 7 additions and 2 deletions

View File

@ -26,8 +26,13 @@ function M.setup()
}, },
}, true, {}) }, true, {})
local lazyrepo = "https://github.com/folke/lazy.nvim.git" local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local ok, out = local ok, out = pcall(vim.fn.system, {
pcall(vim.fn.system, { "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) "git",
"clone",
"--filter=blob:none",
lazyrepo,
lazypath,
})
if not ok or vim.v.shell_error ~= 0 then if not ok or vim.v.shell_error ~= 0 then
vim.api.nvim_echo({ vim.api.nvim_echo({
{ "Failed to clone lazy.nvim\n", "ErrorMsg" }, { "Failed to clone lazy.nvim\n", "ErrorMsg" },