diff options
author | CossonLeo | 2022-01-24 01:41:25 +0000 |
---|---|---|
committer | GitHub | 2022-01-24 01:41:25 +0000 |
commit | d49e5323f9230f3195d3ee4c5e682cd6d8c2cb1a (patch) | |
tree | 80a968f78ca3c9cd0bc88f0c1a27f4b4107a8b2b /helix-term/src/commands.rs | |
parent | 4044c70eb2d23402629d58d0e8904815abd68dc7 (diff) |
Use markup scopes for the Markdown component (#1363)
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index fc0db6ed..7144ebb9 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -5455,7 +5455,8 @@ fn hover(cx: &mut Context) { // skip if contents empty - let contents = ui::Markdown::new(contents, editor.syn_loader.clone()); + let contents = + ui::Markdown::new(contents, editor.syn_loader.clone()).style_group("hover"); let popup = Popup::new("hover", contents); if let Some(doc_popup) = compositor.find_id("hover") { *doc_popup = popup; |