summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
authorMads Hougesen <mads@mhouge.dk>2024-06-01 21:08:18 +0200
committerGitHub <noreply@github.com>2024-06-01 12:08:18 -0700
commit948c83b00eb81bf16b54c6a092ddd88be46793cd (patch)
treee0b74c07e0db2617373ca3f1f246e6f9406f43e4 /lua/conform/formatters
parenta1d3c0aff306b974bc07b4cdf52f1766dd89fc90 (diff)
feat(erlang): support erlfmt (#436)
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/erlfmt.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/erlfmt.lua b/lua/conform/formatters/erlfmt.lua
new file mode 100644
index 0000000..ddcd1e2
--- /dev/null
+++ b/lua/conform/formatters/erlfmt.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/WhatsApp/erlfmt",
+ description = "An automated code formatter for Erlang.",
+ },
+ command = "erlfmt",
+ args = { "-w", "$FILENAME" },
+ stdin = false,
+}