index : neolij.nvim
Seamless Neovim/Zellij integration with built-in navigation, pane/tab management, and Lua scripting.
about summary refs log tree commit diff
author y2w8 <yousefalharby416@gmail.com> 2025-12-13 12:23:46 +0300
committer y2w8 <yousefalharby416@gmail.com> 2025-12-13 12:23:46 +0300
commit fecf20bdf6cfe4922e40087f00cc96f5da1ad646 [patch]
tree ecd76a1b9d3de42fcd8a5dcdd408e63bee864158
parent 30cf587440f781c93a88998a6a89f2127381ec2f
download fecf20bdf6cfe4922e40087f00cc96f5da1ad646.tar.gz

Add health

Diffstat

-rw-r--r-- lua/zellij/health.lua 24
 1 file changed, 24 insertions(+)

diff --git a/lua/zellij/health.lua b/lua/zellij/health.lua
new file mode 100644
index 0000000..8c76b56 100644
--- /dev/null
+++ b/lua/zellij/health.lua
@@ -1,0 +1,24 @@
local health = vim.health or require("health")

health.start("zellij.nvim")

-- Neovim version check
if vim.fn.has("nvim-0.9") == 1 then
  health.ok("Neovim version >= 0.9")
else
  health.error("Neovim 0.9+ is required")
end

-- Zellij executable check
if vim.fn.executable("zellij") == 1 then
  health.ok("zellij found in PATH")
else
  health.error("zellij not found in PATH")
end

-- check if inside zellij session
if vim.env.ZELLIJ then
  health.ok("Running inside Zellij session")
else
  health.warn("Not running inside Zellij (plugin will still load, but actions will fail)")
end