diff options
author | Luca Schlecker | 2023-06-07 12:18:25 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2023-06-09 17:23:29 +0000 |
commit | dbd248fdfa680373d94fbc10094a160aafa0f7a7 (patch) | |
tree | d5fd76903c9f4b445cdb360713686bd447e9299a /helix-view/src | |
parent | 00b152facd8cc9d671f1781a3b931bcc9830efce (diff) |
add config option for instant completion entry preview (defaulting to true).
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/editor.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index b999836f..b2e07c73 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -251,6 +251,8 @@ pub struct Config { deserialize_with = "deserialize_duration_millis" )] pub idle_timeout: Duration, + /// Whether to insert the completion suggestion on hover. Defaults to true. + pub preview_completion_insert: bool, pub completion_trigger_len: u8, /// Whether to instruct the LSP to replace the entire word when applying a completion /// or to only insert new text @@ -746,6 +748,7 @@ impl Default for Config { auto_format: true, auto_save: false, idle_timeout: Duration::from_millis(400), + preview_completion_insert: true, completion_trigger_len: 2, auto_info: true, file_picker: FilePickerConfig::default(), |