Fix LSP completions ignoring auto-completion option (#5042)

pull/5091/head
Jummit 2 years ago committed by GitHub
parent 8abed3bd78
commit 2ea20a23e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3049,6 +3049,11 @@ pub mod insert {
} }
fn language_server_completion(cx: &mut Context, ch: char) { fn language_server_completion(cx: &mut Context, ch: char) {
let config = cx.editor.config();
if !config.auto_completion {
return;
}
use helix_lsp::lsp; use helix_lsp::lsp;
// if ch matches completion char, trigger completion // if ch matches completion char, trigger completion
let doc = doc_mut!(cx.editor); let doc = doc_mut!(cx.editor);

Loading…
Cancel
Save