diff options
| author | Folke Lemaitre <folke.lemaitre@gmail.com> | 2024-07-16 18:06:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-16 12:06:47 -0400 |
| commit | 66e5b63a89e8d811042cbc98103060282491c75e (patch) | |
| tree | b532ec01a9a2e670194ae7e00d7bbe846dbea583 /nvim | |
| parent | d90e14b3c2cee8fc957db8edf98e6ab6eaa09efb (diff) | |
| download | dots-66e5b63a89e8d811042cbc98103060282491c75e.tar.gz | |
fix(lazy): added error handling for bootstrap (#1001)
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 907ef90..f5205ca 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -209,7 +209,10 @@ vim.api.nvim_create_autocmd('TextYankPost', { 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) |