aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorOmnikar2021-11-05 02:25:08 +0000
committerGitHub2021-11-05 02:25:08 +0000
commitcfc82858679d264d178a0b072da26828e685de12 (patch)
tree214e1e538effee89d28c3b948c290555d19e0d82 /helix-view
parent51b4d35dce92fa7bf85780cb2ba0e531db378448 (diff)
Allow infoboxes to be disabled (#972)
* Allow infoboxes to be disabled * Document `infoboxes` default value * Rename `infoboxes` to `auto_info` * Document `auto-info` * Fix incomplete rename
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 63a4ab29..6aa8b04d 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -58,6 +58,8 @@ pub struct Config {
#[serde(skip_serializing, deserialize_with = "deserialize_duration_millis")]
pub idle_timeout: Duration,
pub completion_trigger_len: u8,
+ /// Whether to display infoboxes. Defaults to true.
+ pub auto_info: bool,
}
#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
@@ -88,6 +90,7 @@ impl Default for Config {
auto_completion: true,
idle_timeout: Duration::from_millis(400),
completion_trigger_len: 2,
+ auto_info: true,
}
}
}