diff --git a/crates/nu_plugin_textview/src/assets/syntaxes.bin b/crates/nu_plugin_textview/src/assets/syntaxes.bin new file mode 100644 index 0000000000..dee29367ce Binary files /dev/null and b/crates/nu_plugin_textview/src/assets/syntaxes.bin differ diff --git a/crates/nu_plugin_textview/src/assets/themes.bin b/crates/nu_plugin_textview/src/assets/themes.bin new file mode 100644 index 0000000000..23ad913280 Binary files /dev/null and b/crates/nu_plugin_textview/src/assets/themes.bin differ diff --git a/crates/nu_plugin_textview/src/main.rs b/crates/nu_plugin_textview/src/main.rs index 0d0c24abdb..9c7337d4f5 100644 --- a/crates/nu_plugin_textview/src/main.rs +++ b/crates/nu_plugin_textview/src/main.rs @@ -255,12 +255,12 @@ fn view_text_value(value: &Value) { Some(extension) => { // Load these once at the start of your program let ps: SyntaxSet = syntect::dumps::from_binary(include_bytes!( - "../../../assets/syntaxes.bin" + "assets/syntaxes.bin" )); if let Some(syntax) = ps.find_syntax_by_extension(&extension) { let ts: ThemeSet = syntect::dumps::from_binary(include_bytes!( - "../../../assets/themes.bin" + "assets/themes.bin" )); let mut h = HighlightLines::new(syntax, &ts.themes["OneHalfDark"]);