Code Monkey home page Code Monkey logo

nu-plugin-highlight's People

Contributors

cig0 avatar cptpiepmatz avatar fdncred avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cig0 fdncred

nu-plugin-highlight's Issues

spaces/tabs are eaten?

It looks like leading spaces or tabs are removed

Regular Open

image

Open with highlight

Notice the use crate:: { part is left aligned. The entire file is like this.
image

Can't register the plugin: `Plugin failed to decode: invalid type: string "Any", expected a sequence`

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.

highlight --list-themes gives an error

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 = [
…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.