From 00b152facd8cc9d671f1781a3b931bcc9830efce Mon Sep 17 00:00:00 2001 From: spectre256 Date: Thu, 8 Jun 2023 15:34:07 -0400 Subject: Add register statusline element (#7222) --- helix-view/src/editor.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'helix-view') 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 -- cgit v1.2.3-70-g09d2