Comments (4)
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.
I dunno what that does, it looks like it's not calling the Jsonnet reformatter
from vim-jsonnet.
I am also getting this behavior... does anybody know why?
from vim-jsonnet.
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)
- Apply plugin to .libjsonnet HOT 1
- An option to set indentation to 4 spaces? HOT 1
- Symlink replaced by file upon :wq HOT 2
- No syntax highlighting for .libsonnet in neovim (0.4.2) HOT 4
- Adding "jsonnet fmt" execution at save and autosave time would be very useful HOT 2
- Handle jsonnetfmt errors HOT 1
- Wrong documentation on g:jsonnet_fmt_command
- Adding Jsonnet syntax highlighting to the upstream HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-jsonnet.