| 1 | local health = vim.health or require("health") |
| 2 | |
| 3 | health.start("neolij.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 |
