aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorspectre2562023-06-08 19:34:07 +0000
committerGitHub2023-06-08 19:34:07 +0000
commit00b152facd8cc9d671f1781a3b931bcc9830efce (patch)
tree96816ca91e57199709ba380188a6f493ee35e9a4 /helix-view
parent993c68ad6f9d15c3870871ae5be16ebbd4de0382 (diff)
Add register statusline element (#7222)
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 1f27603c..b999836f 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -403,7 +403,13 @@ impl Default for StatusLineConfig {
E::FileModificationIndicator,
],
center: vec![],
- right: vec![E::Diagnostics, E::Selections, E::Position, E::FileEncoding],
+ right: vec![
+ E::Diagnostics,
+ E::Selections,
+ E::Register,
+ E::Position,
+ E::FileEncoding,
+ ],
separator: String::from("│"),
mode: ModeConfig::default(),
}
@@ -484,6 +490,9 @@ pub enum StatusLineElement {
/// Current version control information
VersionControl,
+
+ /// Indicator for selected register
+ Register,
}
// Cursor shape is read and used on every rendered frame and so needs