aboutsummaryrefslogtreecommitdiffstats
path: root/plugin-dev-workspace.kdl
blob: d496c28346e7dcb068e1d338c831869b8cb94b8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
layout {
    pane size=1 borderless=true {
        plugin location="zellij:tab-bar"
    }
    pane split_direction="vertical" {
        pane edit="src/main.rs"
        pane {
            pane stacked=true {
                pane size="10%" command="bash" name="COMPILE AND RELOAD PLUGIN" {
                    args "-c" "watchexec 'cargo build && zellij action start-or-reload-plugin file:target/wasm32-wasi/debug/zjstatus.wasm'"
                }
                pane expanded=true {
                    plugin location="file:target/wasm32-wasi/debug/zjstatus.wasm" {
                        format "#[fg=0,bg=3,bold,italic] {mode} #[fg=255] :: {tabs} {space} #[fg=255,bg=0] {date}"

                        mode_normal_format "#[fg=255,bg=0]>> normal"
                        mode_tmux_format   "#[fg=255,bg=0]>> tmux"

                        tab_format        "#[fg=255,bg=0] {name}"
                        tab_active_format "#[fg=255,bg=0,bold] {name}"
                    }
                }
            }
        }
    }
    pane size=2 borderless=true {
        plugin location="zellij:status-bar"
    }
}