Too many people seem to have faulty git configuration that make the initial clone fail.
This PR adds error handling in case the bootstrap fails.
I've add a simple error, but if a prettier error message is wanted, you could use:
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
Too many people seem to have faulty git configuration that make the initial clone fail.
This PR adds error handling in case the bootstrap fails.
I've add a simple
error
, but if a prettier error message is wanted, you could use: