smelt.document¶
Availability: Everywhere, including headless mode.
Advanced: Low-level building block for plugins that need full control. It may change more freely than the rest of the API.
Indexed read-only documents shared by native data providers and Lua-created windows.
smelt.document.text¶
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.