diff --git a/lua/zellij-nav/health.lua b/lua/zellij-nav/health.lua index cf70c1f..9b6ed5b 100644 --- a/lua/zellij-nav/health.lua +++ b/lua/zellij-nav/health.lua @@ -1,12 +1,16 @@ local M = {} M.check = function() - vim.health.report_start("zellij-nav.nvim") + local start = vim.health.report_start or vim.health.start + local report_ok = vim.health.report_ok or vim.health.ok + local report_error = vim.health.report_error or vim.health.error + + start("zellij-nav.nvim") local version = vim.fn.system("zellij --version") if vim.v.shell_error ~= 0 then - vim.health.report_error("zellij executable not found in user's path") + report_error("zellij executable not found in user's path") else - vim.health.report_ok("found zellij version " .. string.gsub(version, "zellij ", "")) + report_ok("found zellij version " .. string.gsub(version, "zellij ", "")) end end