nvim_runtime_lua

lsp.TypeHierarchyItem

Fields8

TypeHierarchyItem.name : string

The name of this item.

TypeHierarchyItem.kind : lsp.SymbolKind

The kind of this item.

TypeHierarchyItem.tags : lsp.SymbolTag[] | nil

Tags for this item.

TypeHierarchyItem.detail : nil | string

More detail for this item, e.g. the signature of a function.

TypeHierarchyItem.uri : lsp.DocumentUri

The resource identifier of this item.

TypeHierarchyItem.range : lsp.Range

The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.

TypeHierarchyItem.selectionRange : lsp.Range

The range that should be selected and revealed when this symbol is being picked, e.g. the name of a function. Must be contained by the {@link TypeHierarchyItem.range range}.

TypeHierarchyItem.data : lsp.LSPAny | nil

A data entry field that is preserved between a type hierarchy prepare and supertypes or subtypes requests. It could also be used to identify the type hierarchy in the server, helping improve the performance on resolving supertypes and subtypes.