From 9b5cc1bf53f344c8ad829f33c3ac77f5e3ea8da1 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 24 Jan 2023 08:48:14 +0100 Subject: [PATCH] feat(health): check for git in health checks --- lua/lazy/health.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/lazy/health.lua b/lua/lazy/health.lua index 59fa139..31fbd50 100644 --- a/lua/lazy/health.lua +++ b/lua/lazy/health.lua @@ -5,6 +5,12 @@ local M = {} function M.check() vim.health.report_start("lazy.nvim") + if vim.fn.executable("git") == 1 then + vim.health.report_ok("Git installed") + else + vim.health.report_error("Git not installd?") + end + local sites = vim.opt.packpath:get() local default_site = vim.fn.stdpath("data") .. "/site" if not vim.tbl_contains(sites, default_site) then