From 846a6b65c3d13f49b571beee2189d17b71c92e3f Mon Sep 17 00:00:00 2001 From: Seth Bromberger Date: Wed, 27 Jul 2022 01:47:22 +0200 Subject: add configurable / theme-able statusline separator string (#3175) * add configurable separator element to statusline * themable separator * clippy fixes * changed default separator to │ * doc updates--- helix-term/src/ui/statusline.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'helix-term/src') diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs index df6d4800..75e5dbd7 100644 --- a/helix-term/src/ui/statusline.rs +++ b/helix-term/src/ui/statusline.rs @@ -144,6 +144,7 @@ where helix_view::editor::StatusLineElement::Selections => render_selections, helix_view::editor::StatusLineElement::Position => render_position, helix_view::editor::StatusLineElement::PositionPercentage => render_position_percentage, + helix_view::editor::StatusLineElement::Separator => render_separator, helix_view::editor::StatusLineElement::Spacer => render_spacer, } } @@ -353,6 +354,19 @@ where write(context, title, None); } +fn render_separator(context: &mut RenderContext, write: F) +where + F: Fn(&mut RenderContext, String, Option