vim.lsp.buf.code_action.context
Corresponds to lsp.CodeActionContext, but all fields are optional:
@inlinedoc
Fields3
context.diagnostics : lsp.Diagnostic[] | nil
Inferred from the current position if not provided.
context.only : lsp.CodeActionKind[] | nil
CodeActionKinds used to filter the code actions. Most servers support values like "refactor" or "quickfix".
context.triggerKind : lsp.CodeActionTriggerKind | nil
Why code actions were requested.