aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMads Hougesen <mads@mhouge.dk>2024-06-24 13:08:43 +0200
committerGitHub <noreply@github.com>2024-06-24 07:08:43 -0400
commit7394d4989cd08ddb72e526c43afae7dd3111d553 (patch)
treef42f30333577b7454682b07c7adcff95885fc2ca
parentc35f52b04e4436d5525102b2d61150679c967100 (diff)
feat: support crlfmt (#470)
-rw-r--r--lua/conform/formatters/crlfmt.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/crlfmt.lua b/lua/conform/formatters/crlfmt.lua
new file mode 100644
index 0000000..93600f1
--- /dev/null
+++ b/lua/conform/formatters/crlfmt.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/cockroachdb/crlfmt",
+ description = "Formatter for CockroachDB's additions to the Go style guide.",
+ },
+ command = "crlfmt",
+ args = { "-w", "$FILENAME" },
+ stdin = false,
+}