summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--doc/conform.txt1
-rw-r--r--lua/conform/formatters/caramel_fmt.lua10
3 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index c9d9591..9295718 100644
--- a/README.md
+++ b/README.md
@@ -200,6 +200,7 @@ You can view this list in vim with `:help conform-formatters`
- [buf](https://buf.build/docs/reference/cli/buf/format) - A new way of working with Protocol Buffers.
- [buildifier](https://github.com/bazelbuild/buildtools/tree/master/buildifier) - buildifier is a tool for formatting bazel BUILD and .bzl files with a standard convention.
- [cabal_fmt](https://hackage.haskell.org/package/cabal-fmt) - Format cabal files with cabal-fmt
+- [caramel_fmt](https://caramel.run/manual/reference/cli/fmt.html) - Format Caramel code.
- [cbfmt](https://github.com/lukas-reineke/cbfmt) - A tool to format codeblocks inside markdown and org documents.
- [clang-format](https://www.kernel.org/doc/html/latest/process/clang-format.html) - Tool to format C/C++/… code according to a set of rules and heuristics.
- [cljstyle](https://github.com/greglook/cljstyle) - Formatter for Clojure code.
diff --git a/doc/conform.txt b/doc/conform.txt
index c52038e..e285a1d 100644
--- a/doc/conform.txt
+++ b/doc/conform.txt
@@ -239,6 +239,7 @@ FORMATTERS *conform-formatter
`buildifier` - buildifier is a tool for formatting bazel BUILD and .bzl files
with a standard convention.
`cabal_fmt` - Format cabal files with cabal-fmt
+`caramel_fmt` - Format Caramel code.
`cbfmt` - A tool to format codeblocks inside markdown and org documents.
`clang-format` - Tool to format C/C++/… code according to a set of rules and
heuristics.
diff --git a/lua/conform/formatters/caramel_fmt.lua b/lua/conform/formatters/caramel_fmt.lua
new file mode 100644
index 0000000..9640c15
--- /dev/null
+++ b/lua/conform/formatters/caramel_fmt.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://caramel.run/manual/reference/cli/fmt.html",
+ description = "Format Caramel code.",
+ },
+ command = "caramel",
+ args = { "fmt", "$FILENAME" },
+ stdin = false,
+}