summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/fourmolu.lua2
-rw-r--r--lua/conform/formatters/ormolu.lua10
2 files changed, 11 insertions, 1 deletions
diff --git a/lua/conform/formatters/fourmolu.lua b/lua/conform/formatters/fourmolu.lua
index 9c64999..4e1db8e 100644
--- a/lua/conform/formatters/fourmolu.lua
+++ b/lua/conform/formatters/fourmolu.lua
@@ -2,7 +2,7 @@
return {
meta = {
url = "https://hackage.haskell.org/package/fourmolu",
- description = "Fourmolu is a formatter for Haskell source code.",
+ description = "A fork of ormolu that uses four space indentation and allows arbitrary configuration.",
},
command = "fourmolu",
args = { "--stdin-input-file", "$FILENAME" },
diff --git a/lua/conform/formatters/ormolu.lua b/lua/conform/formatters/ormolu.lua
new file mode 100644
index 0000000..4c36929
--- /dev/null
+++ b/lua/conform/formatters/ormolu.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://hackage.haskell.org/package/ormolu",
+ description = "A formatter for Haskell source code.",
+ },
+ command = "ormolu",
+ args = { "--stdin-input-file", "$FILENAME" },
+ stdin = true,
+}