Skip to content

Commit c35f52b

Browse files
authored
feat: add support for caramel fmt (nvim-lua#469)
1 parent f823628 commit c35f52b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ You can view this list in vim with `:help conform-formatters`
200200
- [buf](https://buf.build/docs/reference/cli/buf/format) - A new way of working with Protocol Buffers.
201201
- [buildifier](https://github.com/bazelbuild/buildtools/tree/master/buildifier) - buildifier is a tool for formatting bazel BUILD and .bzl files with a standard convention.
202202
- [cabal_fmt](https://hackage.haskell.org/package/cabal-fmt) - Format cabal files with cabal-fmt
203+
- [caramel_fmt](https://caramel.run/manual/reference/cli/fmt.html) - Format Caramel code.
203204
- [cbfmt](https://github.com/lukas-reineke/cbfmt) - A tool to format codeblocks inside markdown and org documents.
204205
- [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.
205206
- [cljstyle](https://github.com/greglook/cljstyle) - Formatter for Clojure code.

doc/conform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ FORMATTERS *conform-formatter
239239
`buildifier` - buildifier is a tool for formatting bazel BUILD and .bzl files
240240
with a standard convention.
241241
`cabal_fmt` - Format cabal files with cabal-fmt
242+
`caramel_fmt` - Format Caramel code.
242243
`cbfmt` - A tool to format codeblocks inside markdown and org documents.
243244
`clang-format` - Tool to format C/C++/… code according to a set of rules and
244245
heuristics.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---@type conform.FileFormatterConfig
2+
return {
3+
meta = {
4+
url = "https://caramel.run/manual/reference/cli/fmt.html",
5+
description = "Format Caramel code.",
6+
},
7+
command = "caramel",
8+
args = { "fmt", "$FILENAME" },
9+
stdin = false,
10+
}

0 commit comments

Comments
 (0)