Skip to content

Commit

Permalink
Update health.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
jarossnd committed May 27, 2024
1 parent d1550dc commit 7ad6e8a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lua/clipboard-image/health.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local M = {}
local utils = require "clipboard-image.utils"
local health = require "health"
---local health = require "health"

local packages = {
x11 = { name = "xclip", binary = "xclip" },
Expand Down Expand Up @@ -48,11 +48,19 @@ end
M.check = function()
local is_dep_exist, report_msg = M.check_current_dep()

health.report_start "Checking dependencies"
---health.report_start "Checking dependencies"
---if is_dep_exist then
---health.report_ok(report_msg)
---else
---health.report_error(report_msg)
---end
---end

vim.health.start("Checking dependencies")
if is_dep_exist then
health.report_ok(report_msg)
vim.health.ok(report_msg)
else
health.report_error(report_msg)
vim.health.error(report_msg)
end
end

Expand Down

0 comments on commit 7ad6e8a

Please sign in to comment.