nvim_runtime_lua

lsp.InlineCompletionItem

An inline completion item represents a text snippet that is proposed inline to complete text that is being typed.

Fields4

InlineCompletionItem.insertText : string | lsp.StringValue

The text to replace the range with. Must be set.

InlineCompletionItem.filterText : nil | string

A text that is used to decide if this inline completion should be shown. When falsy the {@link InlineCompletionItem.insertText} is used.

InlineCompletionItem.range : lsp.Range | nil

The range to replace. Must begin and end on the same line.

InlineCompletionItem.command : lsp.Command | nil

An optional {@link Command} that is executed after inserting this completion.