Require theme directly when creating language

This commit is contained in:
Isaac Clayton 2022-07-08 16:08:40 +02:00
parent 73620dad06
commit 6f99d59d38
4 changed files with 21 additions and 14 deletions

View file

@ -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));
}
})