| author | y2w8 <yousefalharby416@gmail.com> | 2026-01-29 13:50:58 +0300 |
| committer | y2w8 <yousefalharby416@gmail.com> | 2026-01-29 13:50:58 +0300 |
| commit | c1fefda0fa97e40fbc252701d25e643e33ab9464 [patch] | |
| tree | d41cd7fbd5a501824bf1084c4d0e78aac40a286d | |
| parent | 71a2e635b8f265ea9ccd1b47f4b365ce56cac9b0 | |
| download | c1fefda0fa97e40fbc252701d25e643e33ab9464.tar.gz | |
fix: return if not in zellij session
Diffstat
| -rw-r--r-- | lua/zellij/init.lua | 3 |
|
1 file changed, 3 insertions(+) diff --git a/lua/zellij/init.lua b/lua/zellij/init.lua index 9c819e1..c106844 100644 --- a/lua/zellij/init.lua +++ b/lua/zellij/init.lua @@ -8,6 +8,9 @@ } -- Run zellij action safely function M.zellij_action(args) if not os.getenv("ZELLIJ") then return end vim.fn.system("zellij action " .. args) if vim.v.shell_error ~= 0 then error("zellij executable not found in PATH")
