We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 188aff0 commit 1312682Copy full SHA for 1312682
helix-lsp/src/client.rs
@@ -311,6 +311,7 @@ impl Client {
311
String::from("additionalTextEdits"),
312
],
313
}),
314
+ insert_replace_support: Some(true),
315
..Default::default()
316
317
completion_item_kind: Some(lsp::CompletionItemKindCapability {
helix-term/src/ui/completion.rs
@@ -113,7 +113,8 @@ impl Completion {
113
let edit = match edit {
114
lsp::CompletionTextEdit::Edit(edit) => edit.clone(),
115
lsp::CompletionTextEdit::InsertAndReplace(item) => {
116
- unimplemented!("completion: insert_and_replace {:?}", item)
+ // TODO: support using "insert" instead of "replace" via user config
117
+ lsp::TextEdit::new(item.replace, item.new_text.clone())
118
}
119
};
120
0 commit comments