diff --git a/helix-term/src/handlers/completion.rs b/helix-term/src/handlers/completion.rs index d71fd24fc4ea7..05bdf641f99c4 100644 --- a/helix-term/src/handlers/completion.rs +++ b/helix-term/src/handlers/completion.rs @@ -204,7 +204,7 @@ fn request_completion( let offset_encoding = ls.offset_encoding(); let pos = pos_to_lsp_pos(text, cursor, offset_encoding); let doc_id = doc.identifier(); - let context = if trigger.kind == TriggerKind::Manual { + let context = if matches!(trigger.kind, TriggerKind::Manual | TriggerKind::Auto) { lsp::CompletionContext { trigger_kind: lsp::CompletionTriggerKind::INVOKED, trigger_character: None,