index : neolij.nvim
Seamless Neovim/Zellij integration with built-in navigation, pane/tab management, and Lua scripting.
about summary refs log tree commit diff

Diffstat (limited to 'lua/neolij/health.lua')

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

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

health.start("neolij.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