diff options
author | Jummit | 2022-12-09 04:02:34 +0000 |
---|---|---|
committer | GitHub | 2022-12-09 04:02:34 +0000 |
commit | 2ea20a23e26a771e095972bdda673d491b4aacc5 (patch) | |
tree | 58884c7233f8f4819f66f431694fd5bb0acb8a8b | |
parent | 8abed3bd78200fc5f7e3890fd853c17ce518d157 (diff) |
Fix LSP completions ignoring auto-completion option (#5042)
-rw-r--r-- | helix-term/src/commands.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 1843e7a2..2bac5be0 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -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); |