Skip to content

Commit

Permalink
zellij: add lazygit pane and a separate panel
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Oct 2, 2024
1 parent e71fc91 commit ae23215
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
nativeBuildInputs = with pkgs; [
nodejs_20
zellij # smart terminal workspace
lazygit # git terminal
];
}

36 changes: 28 additions & 8 deletions term.kdl
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
// https://zellij.dev/documentation/creating-a-layout
layout {
pane split_direction="vertical" {
pane command="npm" {
args "run" "watch"
tab name="main" focus=true {
pane size=1 borderless=true {
plugin location="zellij:tab-bar"
}
pane command="npm" {
args "install"
pane size="60%" {
command "lazygit"
focus true
}
pane split_direction="vertical" size="40%" {
pane {
command "npm"
args "run" "watch"
}
pane {
command "npm"
args "install"
}
}
pane size=1 borderless=true {
plugin location="zellij:status-bar"
}
}
pane focus=true
pane size=1 borderless=true {
plugin location="zellij:status-bar"
tab name="term" {
pane size=1 borderless=true {
plugin location="zellij:tab-bar"
}
pane
pane size=1 borderless=true {
plugin location="zellij:status-bar"
}
}
}

0 comments on commit ae23215

Please sign in to comment.