Minga.Core.Decorations.HighlightRange (Minga v0.1.0)

Copy Markdown View Source

A highlight range decoration: custom visual styling on an arbitrary buffer span without modifying the buffer text.

Composes with tree-sitter syntax highlighting. A range that sets bg but not fg preserves the syntax foreground color. Multiple ranges can overlap on the same character; higher-priority ranges win per-property.

Summary

Types

t()

@type t() :: %Minga.Core.Decorations.HighlightRange{
  end_: Minga.Core.IntervalTree.position(),
  group: atom() | nil,
  id: reference(),
  priority: integer(),
  start: Minga.Core.IntervalTree.position(),
  style: Minga.Core.Face.t()
}