From 7ad6e8a1dda980c16d091d75cbbf3eef12834059 Mon Sep 17 00:00:00 2001 From: Jason Ross <72239230+jarossnd@users.noreply.github.com> Date: Mon, 27 May 2024 13:23:11 -0500 Subject: [PATCH] Update health.lua https://github.com/ekickx/clipboard-image.nvim/pull/48#issuecomment-1589760763 --- lua/clipboard-image/health.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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