Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index cd8560e0..162d2b1f 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -381,6 +381,17 @@ pub struct Config {
pub editor_config: bool,
/// Whether to render rainbow colors for matching brackets. Defaults to `false`.
pub rainbow_brackets: bool,
+ /// Whether to enable Kitty Keyboard Protocol
+ pub kitty_keyboard_protocol: KittyKeyboardProtocolConfig,
+}
+
+#[derive(Debug, Default, PartialEq, Eq, PartialOrd, Ord, Deserialize, Serialize, Clone, Copy)]
+#[serde(rename_all = "kebab-case")]
+pub enum KittyKeyboardProtocolConfig {
+ #[default]
+ Auto,
+ Disabled,
+ Enabled,
}
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, Eq, PartialOrd, Ord)]
@@ -1061,6 +1072,7 @@ impl Default for Config {
clipboard_provider: ClipboardProvider::default(),
editor_config: true,
rainbow_brackets: false,
+ kitty_keyboard_protocol: Default::default(),
}
}
}