mirror of https://github.com/folke/lazy.nvim.git
fix: updated the bootstrap code
This commit is contained in:
parent
5128d896c7
commit
1ee4e8b719
|
@ -68,7 +68,7 @@ function M.stats()
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.bootstrap()
|
function M.bootstrap()
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/site/pack/lazy/opt/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
|
@ -78,7 +78,7 @@ function M.bootstrap()
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
vim.opt.runtimepath:append(lazypath)
|
vim.opt.runtimepath:prepend(lazypath)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue