on master help sign in
Fix LSP completions ignoring auto-completion option (#5042)
2ea20a2Jummit
helix-term/src/commands.rs+5
@@ -3049,6 +3049,11 @@ pub mod insert {
3049 }
3049 }
3050
3050
3051 fn language_server_completion(cx: &mut Context, ch: char) {
3051 fn language_server_completion(cx: &mut Context, ch: char) {
3052+ let config = cx.editor.config();
3053+ if !config.auto_completion {
3054+ return;
3055+ }
3056+
3052 use helix_lsp::lsp;
3057 use helix_lsp::lsp;
3053 // if ch matches completion char, trigger completion
3058 // if ch matches completion char, trigger completion
3054 let doc = doc_mut!(cx.editor);
3059 let doc = doc_mut!(cx.editor);