diff options
author | Blaž Hrastnik | 2022-11-08 11:48:06 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-11-08 11:50:49 +0000 |
commit | 13126823f83cb90a3aabfc2326c0907d1ca2d921 (patch) | |
tree | 70828913c1b8858a76fbed84348137c47b80c844 /helix-term/src | |
parent | 188aff059bf9558b4fa28b03d5929020ff76cdb3 (diff) |
lsp: Support insertReplace
Fixes #4473
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/completion.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs index de7c3232..5ec8cf89 100644 --- a/helix-term/src/ui/completion.rs +++ b/helix-term/src/ui/completion.rs @@ -113,7 +113,8 @@ impl Completion { let edit = match edit { lsp::CompletionTextEdit::Edit(edit) => edit.clone(), 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()) } }; |