Expand description
Context plugin for reovim
Provides event-driven context updates for UI components. Instead of consumers polling for context on every frame, this plugin:
- Subscribes to core events (
CursorMoved,ViewportScrolled,BufferModified) - Computes context using the registered
ContextProvider - Emits context update events (
CursorContextUpdated,ViewportContextUpdated) - Consumers subscribe to these events and cache the results
This reduces redundant computation and improves performance.
Re-exports§
pub use events::CursorContextUpdated;pub use events::ViewportContextUpdated;pub use manager::CachedContext;pub use manager::ContextManager;
Modules§
Structs§
- Context
Plugin - Context plugin for event-driven context updates