LavaUI docs

LavaText

142 declarations · 65 documented

LavaText

  • CaretAffinity enum

    Which side of a wrap boundary a caret belongs to.

  • HighlightRule struct

    A pattern-to-style mapping, applied per line.

  • HighlightSpan struct

    A styled character range within one line.

  • LineIndex struct

    Where each logical line sits, in characters and (optionally) in bytes.

  • MarkdownDocument struct

    Display text with Markdown delimiters removed and styles mapped to character offsets in that display text.

  • MarkdownParser enum

    A deliberately compact Markdown parser for model responses.

  • MarkdownSpan struct
  • MarkdownSpanStyle enum

    Semantic styles emitted by the small Markdown parser.

  • SoftWrap enum

    Greedy line breaking.

  • StatefulLexer protocol

    A lexer whose highlighting for line N depends on what came before it — the gap a per-line HighlightRule list cannot close: a block comment or a string that opens on one line and closes on another.

  • SyntaxHighlighter struct

    Applies rules to a line and resolves overlaps by priority — or, if built from a StatefulLexer instead, threads that lexer's state line to line.

  • TextEdit struct

    One reversible edit: replace a range of the buffer with new text.

  • TextEditingState struct

    Selection and caret for a single editable string.

  • TextSearch struct

    Find-in-buffer: match locations plus which one is current.

  • UndoStack struct

    Undo/redo history for a single buffer.

  • VisualLayout struct

    Where each visual row begins and ends, in character offsets over the whole buffer.