mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 00:13:28 +02:00
feat(helix-tui): add configuration to manually enable/disable KKP (#14398)
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user