Require theme directly when creating language
This commit is contained in:
parent
73620dad06
commit
6f99d59d38
4 changed files with 21 additions and 14 deletions
|
@ -226,6 +226,7 @@ fn main() {
|
|||
let languages = languages.clone();
|
||||
|cx| async move {
|
||||
init_languages.await;
|
||||
dbg!("all languages initialized, starting setting highlighting");
|
||||
cx.read(|cx| languages.set_theme(&cx.global::<Settings>().theme.editor.syntax));
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue