Skip to content

Commit

Permalink
fix: add error handling to lazy's bootstrap (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoliv committed Jul 19, 2024
1 parent 5a4e96a commit 9203022
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kickstart-python.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
-- BOOTSTRAP the plugin manager `lazy.nvim`
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim"
vim.system({ "git", "clone", "--filter=blob:none", lazyrepo, "--branch=stable", lazypath }):wait()
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
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
vim.opt.runtimepath:prepend(lazypath)

Expand Down

0 comments on commit 9203022

Please sign in to comment.