From 8d452e37bbf16cfd8841cca4286c2b0f7c8db669 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 30 Dec 2022 13:47:17 +0000 Subject: [PATCH] chore(build): auto-generate vimdoc --- doc/lazy.nvim.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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) <