aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-07-17 10:52:44 +0200
committerDamjan 9000 <damjan.9000@gmail.com>2024-07-17 10:52:44 +0200
commita6442e80813b40238066676b7ac97951c1bd1822 (patch)
tree90defa2ff1dbf8cb92a4f6f4cef05c5b50ed2165 /lua
parent64597b0077e711f8ee4b9952d7b8a23b02e940e9 (diff)
parent3e55ff1a83dc7a9813d8f2220cefd90b07aacdab (diff)
Merge 'upstream' fix(lazy): added error handling for bootstrap
Diffstat (limited to 'lua')
-rw-r--r--lua/lazy-bootstrap.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/lazy-bootstrap.lua b/lua/lazy-bootstrap.lua
index 5ea6ffc..ede966a 100644
--- a/lua/lazy-bootstrap.lua
+++ b/lua/lazy-bootstrap.lua
@@ -3,7 +3,10 @@
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
- vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
+ local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
+ if vim.v.shell_error ~= 0 then
+ error('Error cloning lazy.nvim:\n' .. out)
+ end
end ---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)