summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
authorDaniel <33197631+dadav@users.noreply.github.com>2023-12-05 05:30:36 +0100
committerGitHub <noreply@github.com>2023-12-04 20:30:36 -0800
commit769dde8ddccf8338c68da706e46fd2fb004e6455 (patch)
treeaf12fa7a9617561fdd8621ea7d08b439aaa69e11 /lua/conform/formatters
parent96cb2d5e3d8d7c927af2c86a11a71ee6d09d9031 (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.lua10
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,
+}