mirror of https://github.com/helix-editor/helix
parent
188aff059b
commit
13126823f8
|
@ -311,6 +311,7 @@ impl Client {
|
||||||
String::from("additionalTextEdits"),
|
String::from("additionalTextEdits"),
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
insert_replace_support: Some(true),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
completion_item_kind: Some(lsp::CompletionItemKindCapability {
|
completion_item_kind: Some(lsp::CompletionItemKindCapability {
|
||||||
|
|
|
@ -113,7 +113,8 @@ impl Completion {
|
||||||
let edit = match edit {
|
let edit = match edit {
|
||||||
lsp::CompletionTextEdit::Edit(edit) => edit.clone(),
|
lsp::CompletionTextEdit::Edit(edit) => edit.clone(),
|
||||||
lsp::CompletionTextEdit::InsertAndReplace(item) => {
|
lsp::CompletionTextEdit::InsertAndReplace(item) => {
|
||||||
unimplemented!("completion: insert_and_replace {:?}", item)
|
// TODO: support using "insert" instead of "replace" via user config
|
||||||
|
lsp::TextEdit::new(item.replace, item.new_text.clone())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue