aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorIvan Tham2021-10-16 13:57:41 +0000
committerGitHub2021-10-16 13:57:41 +0000
commit89707a858f593c99d44af173e9fb2c0d72b8697e (patch)
tree332900f724f508ff21a0b7b2ea7c3ff4fb206433 /helix-view/src
parent2c0468ffd16de1f835ac9c4e39692a682273fb7b (diff)
Make auto-completion a config (#853)
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/editor.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index d0ea6653..90e3bf47 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -47,12 +47,14 @@ pub struct Config {
pub shell: Vec<String>,
/// Line number mode.
pub line_number: LineNumber,
- /// Middle click paste support. Defaults to true
+ /// Middle click paste support. Defaults to true.
pub middle_click_paste: bool,
/// Smart case: Case insensitive searching unless pattern contains upper case characters. Defaults to true.
pub smart_case: bool,
/// Automatic insertion of pairs to parentheses, brackets, etc. Defaults to true.
pub auto_pairs: bool,
+ /// Automatic auto-completion, automatically pop up without user trigger. Defaults to true.
+ pub auto_completion: bool,
/// Time in milliseconds since last keypress before idle timers trigger. Used for autocompletion, set to 0 for instant. Defaults to 400ms.
#[serde(skip_serializing, deserialize_with = "deserialize_duration_millis")]
pub idle_timeout: Duration,
@@ -83,6 +85,7 @@ impl Default for Config {
middle_click_paste: true,
smart_case: true,
auto_pairs: true,
+ auto_completion: true,
idle_timeout: Duration::from_millis(400),
}
}