diff --git a/lua/clipboard-image/health.lua b/lua/clipboard-image/health.lua index 51fb558..70c3aa6 100644 --- a/lua/clipboard-image/health.lua +++ b/lua/clipboard-image/health.lua @@ -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" }, @@ -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