nvim_runtime_lua

lsp.SelectionRange

A selection range represents a part of a selection hierarchy. A selection range may have a parent selection range that contains it.

Fields2

SelectionRange.range : lsp.Range

The {@link Range range} of this selection range.

SelectionRange.parent : lsp.SelectionRange | nil

The parent selection range containing this range. Therefore parent.range must contain this.range.