diff options
author | Skyler Hawthorne | 2022-10-19 04:01:00 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-10-19 04:01:00 +0000 |
commit | 756253b43f5ec1d8cc6fce9e6ebcf3f9fee5bc5a (patch) | |
tree | 6500f63ecfef55b3fad8fb4a0f3978b485bd2437 /helix-term/src | |
parent | 9a406b569b1b75c1970b81aac068110232ead2fd (diff) |
fix tree_sitter_scopes
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands/typed.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index eeeb4625..c1971d81 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1077,12 +1077,13 @@ fn tree_sitter_scopes( let contents = format!("```json\n{:?}\n````", scopes); let callback = async move { - let call: job::Callback = - Box::new(move |editor: &mut Editor, compositor: &mut Compositor| { + let call: job::Callback = Callback::EditorCompositor(Box::new( + move |editor: &mut Editor, compositor: &mut Compositor| { let contents = ui::Markdown::new(contents, editor.syn_loader.clone()); let popup = Popup::new("hover", contents).auto_close(true); compositor.replace_or_push("hover", popup); - }); + }, + )); Ok(call) }; |