nvim_runtime_lua

lsp.DocumentLink

A document link is a range in a text document that links to an internal or external resource, like another text document or a web site.

@since 3.15.0

Fields4

DocumentLink.range : lsp.Range

The range this link applies to.

DocumentLink.target : lsp.URI | nil

The uri this link points to. If missing a resolve request is sent later.

DocumentLink.tooltip : nil | string
DocumentLink.data : lsp.LSPAny | nil

A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest.