cptpiepmatz / nu-plugin-highlight Goto Github PK
View Code? Open in Web Editor NEWπ A nushell plugin for syntax highlighting.
License: MIT License
π A nushell plugin for syntax highlighting.
License: MIT License
Nushell: 0.83.0
cargo: 1.70.0
nu_plugin_highlight: v1.0.3
> whereis nu_plugin_highlight
nu_plugin_highlight: /var/home/cig0/.cargo/bin/nu_plugin_highlight
> register ~/.cargo/bin/nu_plugin_highlight
Error: Γ Error getting signatures
ββ[entry #3:1:1]
1 β register ~/.cargo/bin/nu_plugin_highlight
Β· βββββ¬βββ
Β· β°ββ Plugin failed to decode: invalid type: string "Any", expected a sequence
β°ββββ
If running the plugin 'as-is':
> nu_plugin_highlight
msgpack
οΏ½οΏ½ErrorοΏ½οΏ½Plugin failed to decodeοΏ½>invalid value: integer `10`, expected variant index 0 <= i < 3οΏ½
I couldn't find anything related on the web.
Thanks.
seems like open src\main.rs | highlight rust
should work too, but only Rust
works
I'm using nu_plugin_highlight v1.0.6 and if I try to list themes I get an error:
β― highlight --list-themes
Error: Γ Unable to decode call for highlight
ββ[entry #24:1:1]
1 β highlight --list-themes
Β· βββββ¬ββββ
Β· β°ββ Plugin failed to decode: invalid type: sequence, expected a string
β°ββββ
Same if I give highlight
something to highlight:
β― open Cargo.toml -r | highlight toml --list-themes
Error: Γ Unable to decode call for highlight
ββ[entry #26:1:1]
1 β open Cargo.toml -r | highlight toml --list-themes
Β· βββββ¬ββββ
Β· β°ββ Plugin failed to decode: invalid type: sequence, expected a string
β°ββββ
highlight
doing highlighting works, running the above with --list-themes
gives output:
β― open Cargo.toml -r | highlight toml
[workspace]
members = [
β¦
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.