index : neolij.nvim
Seamless Neovim/Zellij integration with built-in navigation, pane/tab management, and Lua scripting.
about summary refs log tree commit diff
neolij.nvim / lua / zellij / health.lua
-rw-r--r-- blob 8c76b568256429b837d32a8d3ce04bde80a2e764 585 bytes (plain)
1
local health = vim.health or require("health")
2
3
health.start("zellij.nvim")
4
5
-- Neovim version check
6
if vim.fn.has("nvim-0.9") == 1 then
7
  health.ok("Neovim version >= 0.9")
8
else
9
  health.error("Neovim 0.9+ is required")
10
end
11
12
-- Zellij executable check
13
if vim.fn.executable("zellij") == 1 then
14
  health.ok("zellij found in PATH")
15
else
16
  health.error("zellij not found in PATH")
17
end
18
19
-- check if inside zellij session
20
if vim.env.ZELLIJ then
21
  health.ok("Running inside Zellij session")
22
else
23
  health.warn("Not running inside Zellij (plugin will still load, but actions will fail)")
24
end