fix: updated the bootstrap code

This commit is contained in:
Folke Lemaitre 2022-12-14 21:38:40 +01:00
parent 5128d896c7
commit 1ee4e8b719
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ function M.stats()
end
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
vim.fn.system({
"git",
@ -78,7 +78,7 @@ function M.bootstrap()
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
vim.opt.runtimepath:append(lazypath)
vim.opt.runtimepath:prepend(lazypath)
end
end