build(bootstrap): added support for custom lazypath

This commit is contained in:
Folke Lemaitre 2024-06-29 08:03:06 +02:00
parent 0e106c085c
commit cdfea60506
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ function M.setup()
end
end
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazypath = vim.env.LAZY_PATH or vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.env.LAZY_PATH and not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.api.nvim_echo({
{
"Cloning lazy.nvim\n\n",