Skip to content

Commit

Permalink
Fix LSP completions ignoring auto-completion option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jummit committed Dec 7, 2022
1 parent af53214 commit 0285be0
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 @@ -4059,6 +4059,11 @@ fn remove_primary_selection(cx: &mut Context) {
}

pub fn completion(cx: &mut Context) {
let config = cx.editor.config();
if !config.auto_completion {
return;
}

use helix_lsp::{lsp, util::pos_to_lsp_pos};

let (view, doc) = current!(cx.editor);
Expand Down

0 comments on commit 0285be0

Please sign in to comment.