var completionData: any = v:completed_item->get('user_data', '')
if completionData->type() != v:t_dict
|| !completionData->has_key('additionalTextEdits')
+ || opt.lspOptions.noAdditionalTextEdits
return
endif
ignoreMissingServer: false,
# Focus on the location list window after LspShowReferences
keepFocusInReferences: false,
+ # If not apply LSP server-initiated actions after completion
+ # specially if some others plugins had registered to do that
+ noAdditionalTextEdits: false,
# instead of the signature
noDiagHoverOnLine: true,
# Suppress adding a new line on completion selection with <CR>
*lsp-opt-keepFocusInReferences*
keepFocusInReferences |Boolean| option. Focus on the location list window
after LspShowReferences.
+ By default this is set to false.
+ *lsp-opt-noAdditionalTextEdits*
+noAdditionalTextEdits |Boolean| option. If not apply LSP server-initiated
+ actions after completion, specially if some others
+ plugins had registered to do that.
By default this is set to false.
*lsp-opt-noDiagHoverOnLine*
noDiagHoverOnLine |Boolean| option. Suppress diagnostic hover from
appearing when the mouse is over the line instead of
- the signature. By default this is set to true.
+ the signature.
+ By default this is set to true.
*lsp-opt-noNewlineInCompletion*
noNewlineInCompletion |Boolean| option. Suppress adding a new line on
completion selection with <CR>.