Function

LspCompletionItemnew

Declaration

LspCompletionItem*
lsp_completion_item_new (
  const gchar* label,
  LspCompletionItemKind kind
)

Description

Creates a new completion item with a label.

Parameters

label

Type: const gchar*

The string displayed for this completion item.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
kind

Type: LspCompletionItemKind

The type of completion item, or use LSP_COMPLETION_ITEM_KIND_UNSET for a default.

Return value

Type: LspCompletionItem

No description available.

The caller of the function takes ownership of the data, and is responsible for freeing it.