mirror of https://github.com/folke/lazy.nvim.git
feat(health): check for git in health checks
This commit is contained in:
parent
39c4770d81
commit
9b5cc1bf53
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue