aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 3292d39f..1e53d010 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1790,12 +1790,12 @@ pub fn completion(cx: &mut Context) {
);
// TODO: handle fails
- let res = block_on(language_server.completion(doc.identifier(), pos)).unwrap();
+ let future = language_server.completion(doc.identifier(), pos);
let trigger_offset = doc.selection(view.id).cursor();
cx.callback(
- res,
+ future,
move |editor: &mut Editor,
compositor: &mut Compositor,
response: Option<lsp::CompletionResponse>| {