use helix_core::{coords_at_pos, encoding}; use helix_view::{ document::{Mode, SCRATCH_BUFFER_NAME}, graphics::Rect, theme::Style, Document, Editor, Theme, View, }; use crate::ui::ProgressSpinners; use tui::buffer::Buffer as Surface; use tui::text::{Span, Spans}; /// A status line element contains the information about a component which can be displayed in the status line. struct StatusLineElement { /// The element pub text: String, /// The style to be used to render the element (this style will be merged with the base style). /// If not set, a default base style will be used. pub style: Option