Skip to content

Commit cdfea60

Browse files
committed
build(bootstrap): added support for custom lazypath
1 parent 0e106c0 commit cdfea60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootstrap.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function M.setup()
1313
end
1414
end
1515

16-
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
17-
if not (vim.uv or vim.loop).fs_stat(lazypath) then
16+
local lazypath = vim.env.LAZY_PATH or vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
17+
if not vim.env.LAZY_PATH and not (vim.uv or vim.loop).fs_stat(lazypath) then
1818
vim.api.nvim_echo({
1919
{
2020
"Cloning lazy.nvim\n\n",

0 commit comments

Comments
 (0)