|
|
@ -144,6 +144,7 @@ where
|
|
|
|
helix_view::editor::StatusLineElement::Selections => render_selections,
|
|
|
|
helix_view::editor::StatusLineElement::Selections => render_selections,
|
|
|
|
helix_view::editor::StatusLineElement::Position => render_position,
|
|
|
|
helix_view::editor::StatusLineElement::Position => render_position,
|
|
|
|
helix_view::editor::StatusLineElement::PositionPercentage => render_position_percentage,
|
|
|
|
helix_view::editor::StatusLineElement::PositionPercentage => render_position_percentage,
|
|
|
|
|
|
|
|
helix_view::editor::StatusLineElement::Separator => render_separator,
|
|
|
|
helix_view::editor::StatusLineElement::Spacer => render_spacer,
|
|
|
|
helix_view::editor::StatusLineElement::Spacer => render_spacer,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -353,6 +354,19 @@ where
|
|
|
|
write(context, title, None);
|
|
|
|
write(context, title, None);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn render_separator<F>(context: &mut RenderContext, write: F)
|
|
|
|
|
|
|
|
where
|
|
|
|
|
|
|
|
F: Fn(&mut RenderContext, String, Option<Style>) + Copy,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
let sep = &context.editor.config().statusline.separator;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
write(
|
|
|
|
|
|
|
|
context,
|
|
|
|
|
|
|
|
sep.to_string(),
|
|
|
|
|
|
|
|
Some(context.editor.theme.get("ui.statusline.separator")),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn render_spacer<F>(context: &mut RenderContext, write: F)
|
|
|
|
fn render_spacer<F>(context: &mut RenderContext, write: F)
|
|
|
|
where
|
|
|
|
where
|
|
|
|
F: Fn(&mut RenderContext, String, Option<Style>) + Copy,
|
|
|
|
F: Fn(&mut RenderContext, String, Option<Style>) + Copy,
|
|
|
|