|
|
@ -1077,12 +1077,13 @@ fn tree_sitter_scopes(
|
|
|
|
let contents = format!("```json\n{:?}\n````", scopes);
|
|
|
|
let contents = format!("```json\n{:?}\n````", scopes);
|
|
|
|
|
|
|
|
|
|
|
|
let callback = async move {
|
|
|
|
let callback = async move {
|
|
|
|
let call: job::Callback =
|
|
|
|
let call: job::Callback = Callback::EditorCompositor(Box::new(
|
|
|
|
Box::new(move |editor: &mut Editor, compositor: &mut Compositor| {
|
|
|
|
move |editor: &mut Editor, compositor: &mut Compositor| {
|
|
|
|
let contents = ui::Markdown::new(contents, editor.syn_loader.clone());
|
|
|
|
let contents = ui::Markdown::new(contents, editor.syn_loader.clone());
|
|
|
|
let popup = Popup::new("hover", contents).auto_close(true);
|
|
|
|
let popup = Popup::new("hover", contents).auto_close(true);
|
|
|
|
compositor.replace_or_push("hover", popup);
|
|
|
|
compositor.replace_or_push("hover", popup);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
));
|
|
|
|
Ok(call)
|
|
|
|
Ok(call)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|