nvim_runtime_lua

lsp.DocumentOnTypeFormattingParams

The parameters of a {@link DocumentOnTypeFormattingRequest}.

Fields4

DocumentOnTypeFormattingParams.textDocument : lsp.TextDocumentIdentifier

The document to format.

DocumentOnTypeFormattingParams.position : lsp.Position

The position around which the on type formatting should happen. This is not necessarily the exact position where the character denoted by the property ch got typed.

DocumentOnTypeFormattingParams.ch : string

The character that has been typed that triggered the formatting on type request. That is not necessarily the last character that got inserted into the document since the client could auto insert characters as well (e.g. like automatic brace completion).

DocumentOnTypeFormattingParams.options : lsp.FormattingOptions

The formatting options.