aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/completion.rs
diff options
context:
space:
mode:
authorAlex2022-02-21 07:45:48 +0000
committerGitHub2022-02-21 07:45:48 +0000
commitd5ba0b516263f08116c43eb0796b1027b094dabd (patch)
tree0965f9fdbf2c7da1d6217c154d364c7eaa210507 /helix-term/src/ui/completion.rs
parent700058f433d0d12b30b968d50cd7f9b93f983107 (diff)
Allow separate styles for markup headings (#1618)
* update markdown highlighting to use separate heading themes * remove markdown theme scopes in ui
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,