Skip to main content

Module registry

Module registry 

Source
Expand description

Per-language snippet registry. Stores parsed bodies keyed by trigger prefix; the host’s gen:snippet source consults this registry per-popup-trigger.

Structs§

Snippet
One snippet entry. prefixes may have multiple entries (TextMate JSON "prefix": ["loop", "fr"] form). Body is pre-parsed; the load path runs the parser once at startup.
SnippetMeta
Display-only metadata for a snippet – the bits the completion popup row needs without pulling in the body.
SnippetRegistry
Per-language store. Snippets index by every prefix they register (multi-prefix snippets register under each).