New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reindent with =
is broken
#11
Comments
I dunno what that does, it looks like it's not calling the Jsonnet reformatter |
I am also getting this behavior... does anybody know why? |
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? |
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 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 |
Have this in a Vim buffer
Select all lines in visual mode (
<S-V>
) and press=
. Result:This doesn't look good. My settings
Except for indent character, result does not depend on
expandtab
.The text was updated successfully, but these errors were encountered: