nvim_runtime_lua

lsp.CompletionItemLabelDetails

Additional details for a completion item label.

Fields2

CompletionItemLabelDetails.detail : nil | string

An optional string which is rendered less prominently directly after {@link CompletionItem.label label}, without any spacing. Should be used for function signatures and type annotations.

CompletionItemLabelDetails.description : nil | string

An optional string which is rendered less prominently after {@link CompletionItem.detail}. Should be used for fully qualified names and file paths.