Skip to content

Commit

Permalink
fix(bootstrap): fixed bootstrap script
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 30, 2022
1 parent a2f5c51 commit de82a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,10 @@ You can add the following Lua code to your `init.lua` to bootstrap **lazy.nvim**
```lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--branch=stable", -- remove this if you want to bootstrap to HEAD
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" }) -- last stable release
end
end
vim.opt.rtp:prepend(lazypath)
```
Expand Down
12 changes: 4 additions & 8 deletions lua/lazy/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,10 @@ end
function M.bootstrap()
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--branch=stable", -- remove this if you want to bootstrap to HEAD
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" }) -- last stable release
end
end
vim.opt.rtp:prepend(lazypath)
end
Expand Down

0 comments on commit de82a99

Please sign in to comment.