diff options
author | Mads Hougesen <mads@mhouge.dk> | 2024-06-24 13:06:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 07:06:29 -0400 |
commit | c35f52b04e4436d5525102b2d61150679c967100 (patch) | |
tree | 2dd502c1850b842f8c40121da3bbfd04213e1d2c | |
parent | f823628324eedaed120ea3250301ed7a69728d47 (diff) |
feat: add support for caramel fmt (#469)
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/caramel_fmt.lua | 10 |
3 files changed, 12 insertions, 0 deletions
@@ -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, +} |