diff options
| author | Aram Drevekenin <aram@poor.dev> | 2023-07-25 10:04:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-25 10:04:12 +0200 |
| commit | c95d0e769f31b21f5e2d4aaf6465468344f1bfd6 (patch) | |
| tree | 9589f0875b91b73460b807e90817907bf3d7d8c6 /default-plugins/compact-bar/src | |
| parent | docs(changelog): generate session names with custom words list (diff) | |
| download | sl0ppij-c95d0e769f31b21f5e2d4aaf6465468344f1bfd6.tar.gz sl0ppij-c95d0e769f31b21f5e2d4aaf6465468344f1bfd6.tar.xz sl0ppij-c95d0e769f31b21f5e2d4aaf6465468344f1bfd6.zip | |
feat(plugins): make plugins configurable (#2646)
* work
* make every plugin entry point configurable
* make integration tests pass
* make e2e tests pass
* add test for plugin configuration
* add test snapshot
* add plugin config parsing test
* cleanups
* style(fmt): rustfmt
* style(comment): remove commented code
Diffstat (limited to 'default-plugins/compact-bar/src')
| -rw-r--r-- | default-plugins/compact-bar/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/default-plugins/compact-bar/src/main.rs b/default-plugins/compact-bar/src/main.rs index 40fa65f5..18c9f12b 100644 --- a/default-plugins/compact-bar/src/main.rs +++ b/default-plugins/compact-bar/src/main.rs @@ -2,6 +2,7 @@ mod line; mod tab; use std::cmp::{max, min}; +use std::collections::BTreeMap; use std::convert::TryInto; use tab::get_tab_to_focus; @@ -30,7 +31,7 @@ static ARROW_SEPARATOR: &str = ""; register_plugin!(State); impl ZellijPlugin for State { - fn load(&mut self) { + fn load(&mut self, configuration: BTreeMap<String, String>) { set_selectable(false); subscribe(&[ EventType::TabUpdate, |
