mirror of https://github.com/folke/lazy.nvim.git
build(bootstrap): added support for custom lazypath
This commit is contained in:
parent
0e106c085c
commit
cdfea60506
|
@ -13,8 +13,8 @@ function M.setup()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.env.LAZY_PATH or vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
if not vim.env.LAZY_PATH and not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
vim.api.nvim_echo({
|
vim.api.nvim_echo({
|
||||||
{
|
{
|
||||||
"Cloning lazy.nvim\n\n",
|
"Cloning lazy.nvim\n\n",
|
||||||
|
|
Loading…
Reference in New Issue