7 Commits

Author SHA1 Message Date
Jeroen Op 't Eynde
c2a3e8ca00
fix: maintain view/folds when formatting on save (#31) 2023-02-20 14:33:42 +00:00
Jeroen Op 't Eynde
6ac3486c47
refactor: Reduce complexity of jsonnet#Eval (#32) 2023-02-20 14:33:14 +00:00
Jeroen Op 't Eynde
d07c3c9cca
feat: format visual selections (#26)
* feat: format visual selections

* cleanup

* add eval function

* ingore doc/tags

* fold () and =;
2022-10-25 13:51:12 +01:00
Kris Hicks
b4d56c9024 Update JsonnetFmt for jsonnet v0.13.0 (#15)
In jsonnet v0.13.0 `jsonnet fmt` was split out into its own executable,
`jsonnetfmt`.  See [google/jsonnet](https://github.com/google/jsonnet/releases/tag/v0.13.0)
for more.
2019-06-18 22:43:07 +01:00
Luke Jolly
1425166887 Remove indentation setting that overrides jsonnet defaults (#10) 2018-04-10 22:44:05 -04:00
Hakan Baba
1e2f99cab4 Fix a E121: Undefined variable: error
If the exists('*exepath') evaluates to false vim was returning this
error:
Error detected while processing function
<SNR>10_fmtAutosave..jsonnet#Format..jsonnet#CheckBinPath:
line    6:
E121: Undefined variable: binPath
2016-12-14 15:47:37 -08:00
Hakan Baba
5c07e8e8fa Added automatic jsonned execution at save time.
Added documentation, a vim command, a user callable function and an
autocommand that gets executed at every save.

The defaults are hight configurable with options that are also
documented in this change.
2016-10-07 23:14:11 -07:00