aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorGokul Soumya2021-11-04 18:33:31 +0000
committerBlaž Hrastnik2022-02-10 01:52:06 +0000
commitbf773db45171b59a758b7dabf9f10ffb8852dcf0 (patch)
tree1f472eeaf0f752d2d0af83aeb7b2931811e47e65 /helix-view/src/editor.rs
parent5995568c1d23239a230d6e1bcbfc370e5c8cd287 (diff)
Show infobox with register contents
Diffstat (limited to 'helix-view/src/editor.rs')
-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 27e6f137..43ea8d15 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -2,6 +2,7 @@ use crate::{
clipboard::{get_clipboard_provider, ClipboardProvider},
document::{Mode, SCRATCH_BUFFER_NAME},
graphics::{CursorKind, Rect},
+ info::Info,
input::KeyEvent,
theme::{self, Theme},
tree::{self, Tree},
@@ -243,6 +244,7 @@ pub struct Editor {
pub theme_loader: Arc<theme::Loader>,
pub status_msg: Option<(String, Severity)>,
+ pub autoinfo: Option<Info>,
pub config: Config,
@@ -286,6 +288,7 @@ impl Editor {
registers: Registers::default(),
clipboard_provider: get_clipboard_provider(),
status_msg: None,
+ autoinfo: None,
idle_timer: Box::pin(sleep(config.idle_timeout)),
last_motion: None,
config,