From a4f0d309768e3785a4d67b72ada821872bba389e Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 2 Sep 2023 21:56:27 +0200 Subject: [PATCH] Cleanup bootstrap --- lua/bootstrap.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/bootstrap.lua b/lua/bootstrap.lua index bdd4a9e..dab27a9 100644 --- a/lua/bootstrap.lua +++ b/lua/bootstrap.lua @@ -41,13 +41,15 @@ if not vim.loop.fs_stat(lazypath) then utils.assert_available("git") utils.assert_available("tar") - vim.fn.system({ + local resp = vim.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", - "--branch=stable", -- latest stable release + "--branch=stable", lazypath, - }) + }):wait() + + assert(resp.code == 0, "Failed to download lazy") end vim.opt.rtp:prepend(lazypath)