diff --git a/Cargo.toml b/Cargo.toml index 6820849..d336f27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,4 +5,4 @@ authors = ["{{authors}}"] edition = "2018" [dependencies] -zellij-tile = "1.0.0" +zellij-tile = "0.34.4" diff --git a/README.md b/README.md index eeff485..77a8afb 100644 --- a/README.md +++ b/README.md @@ -26,5 +26,5 @@ cargo install zellij # Building the plugin cargo build # Running in Zellij -zellij -l plugin.yaml +zellij -l plugin.kdl ``` diff --git a/plugin.kdl b/plugin.kdl new file mode 100644 index 0000000..d19c9bf --- /dev/null +++ b/plugin.kdl @@ -0,0 +1,12 @@ +layout { + pane borderless=true size=1 { + plugin location="zellij:tab-bar" + } + pane { + plugin location="file:./target/wasm32-wasi/debug/{{project-name}}.wasm" + } + pane borderless=true size=2 { + plugin location="zellij:status-bar" + } +} + diff --git a/plugin.yaml b/plugin.yaml deleted file mode 100644 index dde38fa..0000000 --- a/plugin.yaml +++ /dev/null @@ -1,26 +0,0 @@ ---- -template: - direction: Horizontal - parts: - - direction: Vertical - borderless: true - split_size: - Fixed: 1 - run: - plugin: - location: "zellij:tab-bar" - - direction: Vertical - body: true - - direction: Vertical - run: - plugin: - location: "file:target/wasm32-wasi/debug/{{project-name}}.wasm" - - direction: Vertical - borderless: true - split_size: - Fixed: 2 - run: - plugin: - location: "zellij:status-bar" -tabs: - - direction: Vertical diff --git a/src/main.rs b/src/main.rs index be96fa1..a11a70b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ register_plugin!(State); impl ZellijPlugin for State { fn load(&mut self) {} - fn update(&mut self, event: Event) {} + fn update(&mut self, event: Event) -> bool { true } fn render(&mut self, rows: usize, cols: usize) {} }