Expand description
Built-in annotators (DESIGN.md §5.11.3).
Annotators run AFTER ranking. Each appends typed
Annotation values to RenderedCandidate.annotations;
the renderer paints each one with the style its category
resolves to. See docs/dev/architecture/marginalia.md.
Structs§
- DocSnippet
Annotator anno:doc-snippet. Appends the first line of the candidate’s documentation if available. PushesAnnotation::DocSnippetso the renderer styles it with the doc-annotation theme slot.- Keybinding
Annotator anno:keybinding. ForCandidateData::Commandcandidates, looks up the chord(s) bound to the command and pushesAnnotation::Keybindingso the renderer styles it with the keybinding theme slot. Skips silently for non-command candidates and for commands with no binding.- Kind
Label Annotator anno:kind-label. Tags every candidate with(command),(file),(motion), etc. – the kind label. PushesAnnotation::Kindso the renderer styles it with the kind-annotation theme slot.
Enums§
- Keybinding
Source - Structured provenance for a keybinding annotation: where the chord comes from. Used by both the filtering logic (show only if the source mode is active) and the display column (show the mode name alongside the chord).
Traits§
- Keymap
Reverse Lookup - Reverse-lookup contract the keybinding annotator depends on: given a command’s canonical name, return the chord sequence(s) bound to it. Empty vec means “no binding.”