Crate reovim_plugin_context

Crate reovim_plugin_context 

Source
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:

  1. Subscribes to core events (CursorMoved, ViewportScrolled, BufferModified)
  2. Computes context using the registered ContextProvider
  3. Emits context update events (CursorContextUpdated, ViewportContextUpdated)
  4. 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;
pub use manager::SharedContextManager;

Modules§

events
Context update events
manager
Context manager for caching and computing context

Structs§

ContextPlugin
Context plugin for event-driven context updates