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/zellij/health.lua')

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

diff --git a/lua/zellij/health.lua b/lua/zellij/health.lua
index 8c76b56..e301f86 100644
--- a/lua/zellij/health.lua
+++ b/lua/zellij/health.lua
@@ -4,21 +4,21 @@

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

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

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