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

This commit is contained in:
Jummit 2022-12-09 05:02:34 +01:00 committed by GitHub
parent 8abed3bd78
commit 2ea20a23e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);