Expand description
:picker snippets source generator.
Walks the live SnippetRegistry for the active buffer’s
language and emits one row per registered snippet. Accept
emits a PickerAcceptOutcome::ExpandSnippet { id } which
the host resolves through App::expand_snippet_by_name
– the same path :snippet-expand <name> uses, so cursor
placement / tab-stops / mark insertion all match the
keyboard-driven flow.
SnippetRegistry lives in this crate; the source lives
here too so the dependency direction stays
lattice-snippet -> lattice-picker (cycle-free; the
picker crate is renderer- and feature-agnostic).
Structs§
- Snippets
Source :picker snippets. WalksSnippetRegistry::meta_for_language(active_lang)and emits one row per snippet, displayed asprefix name -- description.
Functions§
- register
- Register this crate’s picker sources into the supplied
registry. Called by the host’s
App::newat boot: