Fix LSP completions ignoring auto-completion option (#5042)
This commit is contained in:
parent
8abed3bd78
commit
2ea20a23e2
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue