aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
+}