Skip to content

Commit

Permalink
fix LSP ComplitionTriggerKind value for TriggerKind::Auto
Browse files Browse the repository at this point in the history
  • Loading branch information
nkitsaini committed Feb 18, 2024
1 parent 6432669 commit 8fb0f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/handlers/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8fb0f75

Please sign in to comment.