aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMads Hougesen <mads@mhouge.dk>2024-06-24 13:06:29 +0200
committerGitHub <noreply@github.com>2024-06-24 07:06:29 -0400
commitc35f52b04e4436d5525102b2d61150679c967100 (patch)
tree2dd502c1850b842f8c40121da3bbfd04213e1d2c /lua
parentf823628324eedaed120ea3250301ed7a69728d47 (diff)
feat: add support for caramel fmt (#469)
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/caramel_fmt.lua10
1 files changed, 10 insertions, 0 deletions
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,
+}