diff --git a/doc/lazy.nvim.txt b/doc/lazy.nvim.txt index 29d2cb0..44fcd09 100644 --- a/doc/lazy.nvim.txt +++ b/doc/lazy.nvim.txt @@ -68,14 +68,10 @@ You can add the following Lua code to your `init.lua` to bootstrap >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) <