summaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorIvan Tham2021-06-19 15:54:37 +0000
committerBlaž Hrastnik2021-07-04 09:01:59 +0000
commit8985c58fd328cde512df0ac7bc577bd8a8c949a0 (patch)
tree09e82861faa30009a75859ed17746544af4eb5d7 /helix-view/src/editor.rs
parent6ccfa229ed61552e243519534c8659c0974ef62e (diff)
Add infobox
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 a16cc50f..b006a124 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -1,6 +1,7 @@
use crate::{
clipboard::{get_clipboard_provider, ClipboardProvider},
graphics::{CursorKind, Rect},
+ info::Info,
theme::{self, Theme},
tree::Tree,
Document, DocumentId, RegisterSelection, View, ViewId,
@@ -32,6 +33,7 @@ pub struct Editor {
pub syn_loader: Arc<syntax::Loader>,
pub theme_loader: Arc<theme::Loader>,
+ pub autoinfo: Option<Info>,
pub status_msg: Option<(String, Severity)>,
}
@@ -64,6 +66,7 @@ impl Editor {
theme_loader: themes,
registers: Registers::default(),
clipboard_provider: get_clipboard_provider(),
+ autoinfo: None,
status_msg: None,
}
}