mirror of
https://github.com/nushell/nushell
synced 2024-12-25 20:43:09 +00:00
Try to fix asset building
This commit is contained in:
parent
d7ddaa376b
commit
df778afd1f
3 changed files with 2 additions and 2 deletions
BIN
crates/nu_plugin_textview/src/assets/syntaxes.bin
Normal file
BIN
crates/nu_plugin_textview/src/assets/syntaxes.bin
Normal file
Binary file not shown.
BIN
crates/nu_plugin_textview/src/assets/themes.bin
Normal file
BIN
crates/nu_plugin_textview/src/assets/themes.bin
Normal file
Binary file not shown.
|
@ -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"]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue