diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 2 | ||||
-rw-r--r-- | lua/conform/formatters/cljfmt.lua | 10 |
3 files changed, 13 insertions, 0 deletions
@@ -205,6 +205,7 @@ You can view this list in vim with `:help conform-formatters` - [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. +- [cljfmt](https://github.com/weavejester/cljfmt) - cljfmt is a tool for detecting and fixing formatting errors in Clojure code - [cljstyle](https://github.com/greglook/cljstyle) - Formatter for Clojure code. - [cmake_format](https://github.com/cheshirekow/cmake_format) - Parse cmake listfiles and format them nicely. - [codespell](https://github.com/codespell-project/codespell) - Check code for common misspellings. diff --git a/doc/conform.txt b/doc/conform.txt index 1a44d63..24abbf4 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -288,6 +288,8 @@ FORMATTERS *conform-formatter `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. +`cljfmt` - cljfmt is a tool for detecting and fixing formatting errors in + Clojure code `cljstyle` - Formatter for Clojure code. `cmake_format` - Parse cmake listfiles and format them nicely. `codespell` - Check code for common misspellings. diff --git a/lua/conform/formatters/cljfmt.lua b/lua/conform/formatters/cljfmt.lua new file mode 100644 index 0000000..ae52b74 --- /dev/null +++ b/lua/conform/formatters/cljfmt.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/weavejester/cljfmt", + description = "cljfmt is a tool for detecting and fixing formatting errors in Clojure code.", + }, + command = "cljfmt", + args = { "fix", "-" }, + stdin = true, +} |