Expand description
Statusline extension plugin for reovim
This plugin provides a section-based API for other plugins to contribute content to the status line.
§Usage
Other plugins can register sections by emitting StatuslineSectionRegister:
ⓘ
use reovim_plugin_statusline::{
StatuslineSectionRegister, StatuslineSection, SectionContent
};
use reovim_core::plugin::SectionAlignment;
bus.emit(StatuslineSectionRegister {
section: StatuslineSection::new(
"my_plugin_status",
100, // priority
SectionAlignment::Right,
|ctx| SectionContent::new(" LSP ")
),
});Re-exports§
pub use command::StatuslineRefresh;pub use section::SectionContent;pub use section::SectionRenderContext;pub use section::StatuslineSection;pub use state::StatuslineManagerHandle;
Modules§
- command
- Statusline plugin events
- context_
section - Document context breadcrumb section
- section
- Statusline section types
- state
- Statusline state management
Structs§
- Statusline
Plugin - Statusline extension plugin