From 6b1310014ceec5752fd5859f9cc62ef7c93d72b2 Mon Sep 17 00:00:00 2001 From: Zoltán Reegn Date: Thu, 7 Dec 2023 17:48:04 +0100 Subject: feat: add joker for clojure formatting (#240) --- README.md | 1 + lua/conform/formatters/joker.lua | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 lua/conform/formatters/joker.lua diff --git a/README.md b/README.md index 1b12a17..e6615e6 100644 --- a/README.md +++ b/README.md @@ -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", "-" }, +} -- cgit v1.2.3-70-g09d2