Crate reovim_plugin_leap

Crate reovim_plugin_leap 

Source
Expand description

Leap motion plugin for reovim

This plugin provides two-character jump navigation (like leap.nvim/hop.nvim).

§Architecture Note

Commands emit EventBus events that are handled by the runtime. Uses PluginStateRegistry for state management.

Structs§

LeapBackwardCommand
Leap backward command - starts leap mode searching backward
LeapCancelCommand
Leap cancel command - exits leap mode without jumping
LeapCancelEvent
Event emitted when leap mode is cancelled
LeapFirstCharEvent
Event emitted when first character is entered
LeapForwardCommand
Leap forward command - starts leap mode searching forward
LeapJumpEvent
Event emitted when a leap jump occurs
LeapMatch
A single match position with its assigned label
LeapMatchesFoundEvent
Event emitted when matches are found
LeapPlugin
Leap motion plugin
LeapPluginWindow
Plugin window for leap labels
LeapSecondCharEvent
Event emitted when second character is entered
LeapSelectLabelEvent
Event emitted when a label is selected to jump
LeapStartEvent
Event emitted when leap mode starts
LeapStartHandler
Handler for starting leap mode
LeapState
State for the leap motion feature
LeapStyles
Leap styles for rendering

Enums§

LeapDirection
Direction of leap search
LeapPhase
Phase of the leap interaction

Constants§

COMPONENT_ID
Component ID for leap (used in sub-mode)
LEAP_BACKWARD
Command ID for leap backward
LEAP_CANCEL
Command ID for leap cancel
LEAP_FORWARD
Command ID for leap forward

Functions§

find_matches
Find all matches of a two-character pattern in buffer lines
generate_labels
Generate labels for a given number of matches
leap_start_result
Helper to create a CommandResult::Deferred for leap start