diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-06-09 22:49:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 22:49:12 +0200 |
commit | 8485b1c2969e7f88feaf2f809b6b405fbe442ba4 (patch) | |
tree | 989148565b8883d9a04e35f795a3f50008c0e1b1 /zellij-server/src/lib.rs | |
parent | 7f0b87852079f260cc9a834c2dc54eeb002d5879 (diff) |
feat(plugins): extensive plugin api (#2516)
* feat(plugins): add our entire API
* style(fmt): rustfmt
* fix(detach): make it work again
Diffstat (limited to 'zellij-server/src/lib.rs')
-rw-r--r-- | zellij-server/src/lib.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/zellij-server/src/lib.rs b/zellij-server/src/lib.rs index 4e4911429..9707e61e6 100644 --- a/zellij-server/src/lib.rs +++ b/zellij-server/src/lib.rs @@ -778,6 +778,9 @@ fn init_session( let store = get_store(); let layout = layout.clone(); + let client_attributes = client_attributes.clone(); + let default_shell = default_shell.clone(); + let capabilities = capabilities.clone(); move || { plugin_thread_main( plugin_bus, @@ -787,6 +790,9 @@ fn init_session( layout, path_to_default_shell, zellij_cwd, + capabilities, + client_attributes, + default_shell, ) .fatal() } @@ -834,7 +840,7 @@ fn init_session( to_plugin: Some(to_plugin), to_pty_writer: Some(to_pty_writer), to_background_jobs: Some(to_background_jobs), - to_server: None, + to_server: Some(to_server), should_silently_fail: false, }, capabilities, |