feat(health): check for git in health checks

This commit is contained in:
Folke Lemaitre 2023-01-24 08:48:14 +01:00
parent 39c4770d81
commit 9b5cc1bf53
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,12 @@ local M = {}
function M.check() function M.check()
vim.health.report_start("lazy.nvim") 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 sites = vim.opt.packpath:get()
local default_site = vim.fn.stdpath("data") .. "/site" local default_site = vim.fn.stdpath("data") .. "/site"
if not vim.tbl_contains(sites, default_site) then if not vim.tbl_contains(sites, default_site) then