Skip to content

smelt.document

Tier: Host - Available in every runtime, including headless mode.

Classification: Advanced - Documented low-level capability for plugins that need full control. It may evolve more freely than the Supported facade.

Indexed read-only documents shared by native data providers and Lua-created windows.

smelt.document.text

fun(text: string): smelt.document.Document

Types: smelt.document.Document

Index plain text once without creating a Lua table or buffer line per row. Attach the result with win:document(source) for viewport-only rendering and Vim navigation.