diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 520a425c18ac7..0bf7ebd02cc9e 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -211,6 +211,13 @@ pub fn get_terminal_provider() -> Option { }); } + if env_var_is_set("WEZTERM_UNIX_SOCKET") && exists("wezterm") { + return Some(TerminalConfig { + command: "wezterm".to_string(), + args: vec!["cli".to_string(), "split-pane".to_string()], + }); + } + None }