Fix back bootstrapping and healthcheck for fresh install with no packages to fetch.

This commit is contained in:
Ulibos 2023-04-27 04:01:10 +03:00
commit f03bf0a82b
3 changed files with 25 additions and 27 deletions

View file

@ -96,14 +96,11 @@ end
function M.bootstrap()
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
vim.fn.system({ "git", "clone",
"--filter=blob:none", "--depth=1",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
lazypath })
vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" }) -- last stable release
end
vim.opt.rtp:prepend(lazypath)
end