diff --git a/cli/config/src/lib.rs b/cli/config/src/lib.rs index 7979b969..289de595 100644 --- a/cli/config/src/lib.rs +++ b/cli/config/src/lib.rs @@ -14,6 +14,7 @@ use std::{env, fs}; /// This type holds the generic JSON content of the configuration file. Individual tree-sitter /// components will use the [`get`][] method to parse that JSON to extract configuration fields /// that are specific to that component. +#[derive(Debug)] pub struct Config { pub location: PathBuf, pub config: Value, diff --git a/cli/src/main.rs b/cli/src/main.rs index 8d701852..5d3e63fe 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -418,11 +418,10 @@ fn run() -> Result<()> { if let Some(highlight_config) = language_config.highlight_config(language)? { let source = fs::read(path)?; - let theme_config = config.get()?; if html_mode { highlight::html( &loader, - &theme_config, + &theme_config.theme, &source, highlight_config, quiet, @@ -431,7 +430,7 @@ fn run() -> Result<()> { } else { highlight::ansi( &loader, - &theme_config, + &theme_config.theme, &source, highlight_config, time,