From 89707a858f593c99d44af173e9fb2c0d72b8697e Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sat, 16 Oct 2021 21:57:41 +0800 Subject: Make auto-completion a config (#853) --- helix-term/src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-term/src') diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index b3fa79ee..0e7d0e55 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -238,7 +238,7 @@ impl Application { use crate::commands::{completion, Context}; use helix_view::document::Mode; - if doc_mut!(self.editor).mode != Mode::Insert { + if doc_mut!(self.editor).mode != Mode::Insert || !self.config.editor.auto_completion { return; } let editor_view = self -- cgit v1.2.3-70-g09d2