Merge remote-tracking branch 'github/GiuseppeMP/main'

* github/GiuseppeMP/main:
  chore: update healthcheck for new API
  (chore): updated health.lua to use the new 0.11 api. (#2)
This commit is contained in:
swaits committed 2024-09-03 14:41:22 -06:00
commit 511e9b7bb7
1 file changed
+7 -3
+7 -3
View File
@@ -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