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

pull/1/head
Jummit 1 year 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) {
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);

Loading…
Cancel
Save