local O={}O.loaded=false O.check=function()vim.health.start("\105\118\121 \114\101\112\111\114\116")if O.loaded then vim.health.ok("\105\118\121 \108\111\097\100\101\100 \099\111\114\114\101\099\116\108\121")else vim.health.error("\105\118\121 \100\105\100 \110\111\116 \108\111\097\100\101\100 \099\111\114\114\101\099\116\108\121")end local V={"\100\105\114\101\110\118";"\108\097\122\121\103\105\116"}for O,V in ipairs(V)do if vim.fn.executable(V)==1 then vim.health.ok(V.." \105\115 \105\110\115\116\097\108\108\101\100")else vim.health.error(V.." \105\115 \110\111\116 \105\110\115\116\097\108\108\101\100")end end end return O
local M = {}

M.loaded = false

M.check = function()
  vim.health.start("ivy report")

  if M.loaded then
    vim.health.ok("ivy loaded correctly")
  else
    vim.health.error("ivy did not loaded correctly")
  end

  local deps = {
    "direnv", -- direnv.nvim doesn't provide a checkhealth command
    "lazygit", -- there is no plugin that requires lazygit but I have a keybind to open it
  }

  for _, dep in ipairs(deps) do
    if vim.fn.executable(dep) == 1 then
      vim.health.ok(dep .. " is installed")
    else
      vim.health.error(dep .. " is not installed")
    end
  end
end
return M
