diff --git a/helix-view/src/ui/statusline.rs b/helix-view/src/ui/statusline.rs index 2e4263bc6899..170a7cff4d3f 100644 --- a/helix-view/src/ui/statusline.rs +++ b/helix-view/src/ui/statusline.rs @@ -9,7 +9,7 @@ use helix_lsp::lsp::DiagnosticSeverity; use crate::ui::ProgressSpinners; -use crate::editor::StatusLineElement as StatusLineElementID; +use crate::editor::StatusLineElement; use helix_tui::buffer::Buffer as Surface; use helix_tui::text::{Span, Spans}; @@ -132,27 +132,27 @@ fn append(buffer: &mut Spans, text: String, base_style: &Style, style: Option(element_id: StatusLineElementID) -> impl Fn(&mut RenderContext, F) +fn get_render_function(element: StatusLineElement) -> impl Fn(&mut RenderContext, F) where F: Fn(&mut RenderContext, String, Option