Skip to content

Commit

Permalink
feat(health): check for git in health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 24, 2023
1 parent 39c4770 commit 9b5cc1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/lazy/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b5cc1b

Please sign in to comment.