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.