aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorPascal Kuthe2023-03-09 22:21:02 +0000
committerBlaž Hrastnik2023-03-10 07:54:17 +0000
commitd63e570e0a4013f5ad703a9b1ce2d19a06630a82 (patch)
tree4a7b890968cf90edef00955859ecee34d61139b1 /helix-view/src
parentb1f75280909884c9621b553b43030ac39cfa47ce (diff)
treat replace/insertmode consistently, default to insert
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/editor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index c6541105..1b4664ff 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -251,6 +251,9 @@ pub struct Config {
)]
pub idle_timeout: Duration,
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
+ pub completion_replace: bool,
/// Whether to display infoboxes. Defaults to true.
pub auto_info: bool,
pub file_picker: FilePickerConfig,
@@ -738,6 +741,7 @@ impl Default for Config {
color_modes: false,
soft_wrap: SoftWrap::default(),
text_width: 80,
+ completion_replace: false,
}
}
}