diff options
author | Daniel <33197631+dadav@users.noreply.github.com> | 2023-12-05 05:30:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 20:30:36 -0800 |
commit | 769dde8ddccf8338c68da706e46fd2fb004e6455 (patch) | |
tree | af12fa7a9617561fdd8621ea7d08b439aaa69e11 /lua/conform/formatters | |
parent | 96cb2d5e3d8d7c927af2c86a11a71ee6d09d9031 (diff) |
feat: add jsonnetfmt (#230)
* feat: add jsonnetfmt
* fix: use stdin
* docs: adjust name
* docs: adjust url
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/jsonnetfmt.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/jsonnetfmt.lua b/lua/conform/formatters/jsonnetfmt.lua new file mode 100644 index 0000000..edddbb9 --- /dev/null +++ b/lua/conform/formatters/jsonnetfmt.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/google/go-jsonnet/tree/master/cmd/jsonnetfmt", + description = "jsonnetfmt is a command line tool to format jsonnet files.", + }, + command = "jsonnetfmt", + args = { "-" }, + stdin = true, +} |