aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/config.rs')
-rw-r--r--helix-term/src/config.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/helix-term/src/config.rs b/helix-term/src/config.rs
index f3f0ba53..38cd3bfb 100644
--- a/helix-term/src/config.rs
+++ b/helix-term/src/config.rs
@@ -9,6 +9,8 @@ pub struct Config {
pub lsp: LspConfig,
#[serde(default)]
pub keys: Keymaps,
+ #[serde(default)]
+ pub terminal: TerminalConfig,
}
#[derive(Debug, Default, Clone, PartialEq, Deserialize)]
@@ -17,6 +19,18 @@ pub struct LspConfig {
pub display_messages: bool,
}
+#[derive(Debug, Clone, PartialEq, Deserialize)]
+#[serde(rename_all = "kebab-case")]
+pub struct TerminalConfig {
+ pub mouse: bool,
+}
+
+impl Default for TerminalConfig {
+ fn default() -> Self {
+ Self { mouse: true }
+ }
+}
+
#[test]
fn parsing_keymaps_config_file() {
use crate::keymap;