diff --git a/crates/nu_plugin_textview/src/config.rs b/crates/nu_plugin_textview/src/config.rs index 9d9e84459..063141ee3 100644 --- a/crates/nu_plugin_textview/src/config.rs +++ b/crates/nu_plugin_textview/src/config.rs @@ -71,7 +71,7 @@ impl From<&Value> for Config { "line_ranges" => config.line_ranges = bat::line_range::LineRanges::all(), "highlight_range" => config.highlight_range = "0,0".into(), "theme" => { - config.theme = value + config.theme = entry .as_string() .unwrap_or_else(|_| "OneDarkHalf".to_string()) }