Skip to content

Commit

Permalink
Fix LSP completions ignoring auto-completion option (helix-editor#5042)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jummit authored and Frederik Vestre committed Feb 6, 2023
1 parent cc9f335 commit 19a583b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3049,6 +3049,11 @@ pub mod insert {
}

fn language_server_completion(cx: &mut Context, ch: char) {
let config = cx.editor.config();
if !config.auto_completion {
return;
}

use helix_lsp::lsp;
// if ch matches completion char, trigger completion
let doc = doc_mut!(cx.editor);
Expand Down

0 comments on commit 19a583b

Please sign in to comment.