aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJen Stehlik <dev@stehlik.me>2024-04-28 20:20:58 +0200
committerGitHub <noreply@github.com>2024-04-28 11:20:58 -0700
commit12b3995537f52ba2810a9857e8ca256881febbda (patch)
tree0a62ea94e4e84437b4c005822844edfce04ba7f9
parent4660e534bf7678ee0f85879aa75fdcb6855612c2 (diff)
fix(mix): allow mix formatter to format different filetypes (#389)
-rw-r--r--lua/conform/formatters/mix.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/conform/formatters/mix.lua b/lua/conform/formatters/mix.lua
index fb21db6..970d0ef 100644
--- a/lua/conform/formatters/mix.lua
+++ b/lua/conform/formatters/mix.lua
@@ -5,7 +5,7 @@ return {
description = "Format Elixir files using the mix format command.",
},
command = "mix",
- args = { "format", "-" },
+ args = { "format", "--stdin-filename", "$FILENAME", "-" },
cwd = require("conform.util").root_file({
".formatter.exs",
"mix.exs",