From c9f64ec7314509226889df6f61cd3b8a479e146b Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 31 Oct 2023 12:35:18 -0600 Subject: [PATCH] add healthcheck --- lua/zellij-nav/health.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lua/zellij-nav/health.lua diff --git a/lua/zellij-nav/health.lua b/lua/zellij-nav/health.lua new file mode 100644 index 0000000..cf70c1f --- /dev/null +++ b/lua/zellij-nav/health.lua @@ -0,0 +1,13 @@ +local M = {} + +M.check = function() + vim.health.report_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") + else + vim.health.report_ok("found zellij version " .. string.gsub(version, "zellij ", "")) + end +end + +return M