diff options
author | Zoltán Reegn <zoltan.reegn@gmail.com> | 2023-12-07 17:48:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 08:48:04 -0800 |
commit | 6b1310014ceec5752fd5859f9cc62ef7c93d72b2 (patch) | |
tree | ea878ebeb274dfea99a03de057134c1a9475aef3 | |
parent | 6d483720c42c6943887619696a06c9dceea2a27f (diff) |
feat: add joker for clojure formatting (#240)
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | lua/conform/formatters/joker.lua | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -224,6 +224,7 @@ You can view this list in vim with `:help conform-formatters` - [indent](https://www.gnu.org/software/indent/) - GNU Indent. - [injected](doc/advanced_topics.md#injected-language-formatting-code-blocks) - Format treesitter injected languages. - [isort](https://github.com/PyCQA/isort) - Python utility / library to sort imports alphabetically and automatically separate them into sections and by type. +- [joker](https://github.com/candid82/joker) - Small Clojure interpreter, linter and formatter. - [jq](https://github.com/stedolan/jq) - Command-line JSON processor. - [jsonnetfmt](https://github.com/google/go-jsonnet/tree/master/cmd/jsonnetfmt) - jsonnetfmt is a command line tool to format jsonnet files. - [just](https://github.com/casey/just) - Format Justfile. diff --git a/lua/conform/formatters/joker.lua b/lua/conform/formatters/joker.lua new file mode 100644 index 0000000..c87f417 --- /dev/null +++ b/lua/conform/formatters/joker.lua @@ -0,0 +1,9 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/candid82/joker", + description = "Small Clojure interpreter, linter and formatter.", + }, + command = "joker", + args = { "--format", "--write", "-" }, +} |