diff options
author | Seth Bromberger | 2022-07-26 23:47:22 +0000 |
---|---|---|
committer | GitHub | 2022-07-26 23:47:22 +0000 |
commit | 846a6b65c3d13f49b571beee2189d17b71c92e3f (patch) | |
tree | e338696d783cfcde5eea4ca458fa938730ef136d /helix-view | |
parent | 61856f1d64557a053f9160698ab8751bf01d76ab (diff) |
add configurable / theme-able statusline separator string (#3175)
* add configurable separator element to statusline
* themable separator
* clippy fixes
* changed default separator to │
* doc updates
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/editor.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index f99924cf..501c3069 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -203,6 +203,7 @@ pub struct StatusLineConfig { pub left: Vec<StatusLineElement>, pub center: Vec<StatusLineElement>, pub right: Vec<StatusLineElement>, + pub separator: String, } impl Default for StatusLineConfig { @@ -213,6 +214,7 @@ impl Default for StatusLineConfig { left: vec![E::Mode, E::Spinner, E::FileName], center: vec![], right: vec![E::Diagnostics, E::Selections, E::Position, E::FileEncoding], + separator: String::from("│"), } } } @@ -247,8 +249,12 @@ pub enum StatusLineElement { /// The cursor position Position, + /// The separator string + Separator, + /// The cursor position as a percent of the total file PositionPercentage, + /// A single space Spacer, } |