From dbd248fdfa680373d94fbc10094a160aafa0f7a7 Mon Sep 17 00:00:00 2001 From: Luca Schlecker Date: Wed, 7 Jun 2023 14:18:25 +0200 Subject: add config option for instant completion entry preview (defaulting to true). Signed-off-by: Luca Schlecker --- helix-view/src/editor.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helix-view') 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(), -- cgit v1.2.3-70-g09d2