Skip to content

Commit

Permalink
SyntaxSystem: Use two-face themes when feature enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Nov 3, 2023
1 parent e62fea5 commit f8da72f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ std = [
"sys-locale",
"unicode-bidi/std",
]
two-face = ["dep:two-face", "syntect"]
vi = ["syntect"]
wasm-web = ["sys-locale?/js"]
warn_on_missing_glyphs = []
Expand Down
4 changes: 2 additions & 2 deletions src/edit/syntect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ impl SyntaxSystem {
/// Create a new [`SyntaxSystem`] using `[two-face]` definitions
#[cfg(feature = "two-face")]
pub fn new() -> Self {
let lazy_theme_set = two_face::theme::LazyThemeSet::from(two_face::theme::extra());
Self {
//TODO: store newlines in buffer
syntax_set: two_face::syntax::extra_no_newlines(),
//TODO: use two-face themes
theme_set: ThemeSet::load_defaults(),
theme_set: ThemeSet::from(&lazy_theme_set),
}
}
}
Expand Down

0 comments on commit f8da72f

Please sign in to comment.