summaryrefslogtreecommitdiff
path: root/helix-term/src/ui/completion.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/ui/completion.rs')
-rw-r--r--helix-term/src/ui/completion.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs
index 35afe81e..d3b618a9 100644
--- a/helix-term/src/ui/completion.rs
+++ b/helix-term/src/ui/completion.rs
@@ -305,8 +305,6 @@ impl Component for Completion {
let coords = helix_core::visual_coords_at_pos(text, cursor_pos, doc.tab_width());
let cursor_pos = (coords.row - view.offset.row) as u16;
- let markdown_ui =
- |content, syn_loader| Markdown::new(content, syn_loader).style_group("completion");
let mut markdown_doc = match &option.documentation {
Some(lsp::Documentation::String(contents))
| Some(lsp::Documentation::MarkupContent(lsp::MarkupContent {
@@ -314,7 +312,7 @@ impl Component for Completion {
value: contents,
})) => {
// TODO: convert to wrapped text
- markdown_ui(
+ Markdown::new(
format!(
"```{}\n{}\n```\n{}",
language,
@@ -329,7 +327,7 @@ impl Component for Completion {
value: contents,
})) => {
// TODO: set language based on doc scope
- markdown_ui(
+ Markdown::new(
format!(
"```{}\n{}\n```\n{}",
language,
@@ -343,7 +341,7 @@ impl Component for Completion {
// TODO: copied from above
// TODO: set language based on doc scope
- markdown_ui(
+ Markdown::new(
format!(
"```{}\n{}\n```",
language,