Skip to content

Commit 36c8594

Browse files
chore(build): auto-generate docs
1 parent d0921f5 commit 36c8594

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

doc/lazy.nvim.txt

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,16 @@ STRUCTURED SETUP *lazy.nvim-🛠️-installation-structured-setup*
157157
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
158158
if not (vim.uv or vim.loop).fs_stat(lazypath) then
159159
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
160-
vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
160+
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
161+
if vim.v.shell_error ~= 0 then
162+
vim.api.nvim_echo({
163+
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
164+
{ out, "WarningMsg" },
165+
{ "\nPress any key to exit..." },
166+
}, true, {})
167+
vim.fn.getchar()
168+
os.exit(1)
169+
end
161170
end
162171
vim.opt.rtp:prepend(lazypath)
163172

@@ -196,7 +205,16 @@ SINGLE FILE SETUP *lazy.nvim-🛠️-installation-single-file-setup*
196205
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
197206
if not (vim.uv or vim.loop).fs_stat(lazypath) then
198207
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
199-
vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
208+
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
209+
if vim.v.shell_error ~= 0 then
210+
vim.api.nvim_echo({
211+
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
212+
{ out, "WarningMsg" },
213+
{ "\nPress any key to exit..." },
214+
}, true, {})
215+
vim.fn.getchar()
216+
os.exit(1)
217+
end
200218
end
201219
vim.opt.rtp:prepend(lazypath)
202220

0 commit comments

Comments
 (0)