on master help sign in
Fix LSP completions ignoring auto-completion option (#5042)
commit2ea20a23e26a771e095972bdda673d491b4aacc5 authorJummit <jummit@web.de> dateFri 9 Dec 2022, 05:02 (4 years ago) parent8abed3b
1 file changed+5
helix-term/src/commands.rs+5
helix-term/src/commands.rs+5
@@ -3049,6 +3049,11 @@ pub mod insert {
30493049 }
30503050
30513051 fn language_server_completion(cx: &mut Context, ch: char) {
3052+ let config = cx.editor.config();
3053+ if !config.auto_completion {
3054+ return;
3055+ }
3056+
30523057 use helix_lsp::lsp;
30533058 // if ch matches completion char, trigger completion
30543059 let doc = doc_mut!(cx.editor);