mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 20:11:03 +00:00
Use default for highlighting theme
This commit is contained in:
parent
a979608f37
commit
ab10a20c1f
@ -35,8 +35,8 @@ type LineChanges = HashMap<u32, LineChange>;
|
||||
|
||||
fn print_file<P: AsRef<Path>>(filename: P, line_changes: Option<LineChanges>) -> io::Result<()> {
|
||||
let ss = SyntaxSet::load_defaults_nonewlines();
|
||||
let ts = ThemeSet::load_from_folder("/home/shark/Informatik/rust/bat/themes").unwrap();
|
||||
let theme = &ts.themes["Monokai"];
|
||||
let ts = ThemeSet::load_defaults();
|
||||
let theme = &ts.themes["base16-eighties.dark"];
|
||||
|
||||
let mut highlighter = HighlightFile::new(filename, &ss, theme)?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user