Skip to content

Commit

Permalink
Merge pull request #50 from waldirborbajr/zellij-layout
Browse files Browse the repository at this point in the history
Zellij layout
  • Loading branch information
waldirborbajr committed Feb 28, 2024
2 parents 2f40a00 + 04bf572 commit 141f3d1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
build:
cargo watch -q -c -w src/ -x "build -q"
cargo watch -c -w src/ -x "build --color=always"

run:
cargo watch -q -c -w src/ -x "run -q"
cargo watch -c -w src/ -x "run --color=always"

clean:
cargo clean
Expand All @@ -13,6 +13,9 @@ cache:
test:
cargo test

install:
release:
cargo build --release
cargo install --path .

layout:
zellij --layout rust-layout.kdl
27 changes: 27 additions & 0 deletions rust-layout.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
layout {
default_tab_template {
pane size=1 borderless=true {
plugin location="zellij:tab-bar"
}
children
pane size=2 borderless=true {
plugin location="zellij:status-bar"
}
}
// tab name="Rust Dev" {
pane split_direction="vertical" {
pane command="nvim" close_on_exit=true
pane split_direction="horizontal" {
pane command="make" {
args "build"
}
pane
pane
}
}
pane size=1 borderless=true {
// plugin location="zellij:compact-bar"
plugin location="zellij:status-bar"
}
// }
}

0 comments on commit 141f3d1

Please sign in to comment.