nvim_runtime_lua

lsp.DocumentHighlight

A document highlight is a range inside a text document which deserves special attention. Usually a document highlight is visualized by changing the background color of its range.

Fields2

DocumentHighlight.range : lsp.Range

The range this highlight applies to.

DocumentHighlight.kind : lsp.DocumentHighlightKind | nil

The highlight kind, default is {@link DocumentHighlightKind.Text text}.