Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands/lsp.rs')
-rw-r--r--helix-term/src/commands/lsp.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs
index 1ef4d4bd..c5442924 100644
--- a/helix-term/src/commands/lsp.rs
+++ b/helix-term/src/commands/lsp.rs
@@ -1076,11 +1076,7 @@ pub fn hover(cx: &mut Context) {
.text_document_hover(doc.identifier(), pos, None)
.unwrap();
- async move {
- let json = request.await?;
- let response = serde_json::from_value::<Option<lsp::Hover>>(json)?;
- anyhow::Ok((server_name, response))
- }
+ async move { anyhow::Ok((server_name, request.await?)) }
})
.collect();