Git Product home page Git Product logo

Comments (4)

timmow avatar timmow commented on May 2, 2024 2

Theres no indent script in this plugin - probably because jsonnetfmt on save works well enough. But if you do want to enable the indent when using = - i've confirmed the vim-json indent script works - if you put it in $VIMRUNTIME/indent/jsonnet.vim (or symlink it if you use vim-json) - i've done this in my dotfiles repo

There will likely be cases where this doesnt work, but its better to have some indent behaviour - if the repo maintainers were happy to take it, a pull request to add a copy of the vim-json indent script to this repo would make things work out of the box

from vim-jsonnet.

sparkprime avatar sparkprime commented on May 2, 2024

I dunno what that does, it looks like it's not calling the Jsonnet reformatter

from vim-jsonnet.

tklebanoff avatar tklebanoff commented on May 2, 2024

I am also getting this behavior... does anybody know why?

from vim-jsonnet.

tklebanoff avatar tklebanoff commented on May 2, 2024

i found that jsonnetfmt was not in my path -- putting jsonnet in my path made it so I can do

:call jsonnet#Format()

and then it indents. It also indents on write based on the plugin setting. The only thing I havn't been able to get working so far is indent on "=" does anybody here know how to do this?

from vim-jsonnet.

Related Issues (9)

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.