Skip to content

Commit

Permalink
Merge pull request #5 from jpoliv/jpoliv/lazy-bootstrap-error-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser authored Jul 19, 2024
2 parents 5a4e96a + 9203022 commit 2ad68e3
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 2ad68e3

Please sign in to comment.