mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-11 07:42:35 +01:00
Add syntaxes and themes method
This commit is contained in:
@@ -164,8 +164,8 @@ impl HighlightingAssets {
|
||||
self.syntax_set.syntaxes()
|
||||
}
|
||||
|
||||
pub fn themes(&self) -> impl Iterator<Item = &String> {
|
||||
self.theme_set.themes.keys()
|
||||
pub fn themes(&self) -> impl Iterator<Item = &str> {
|
||||
self.theme_set.themes.keys().map(|s| s.as_ref())
|
||||
}
|
||||
|
||||
pub(crate) fn get_theme(&self, theme: &str) -> &Theme {
|
||||
|
Reference in New Issue
Block a user