Skip to content

Commit

Permalink
feat: add joker for clojure formatting (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
reegnz committed Dec 7, 2023
1 parent 6d48372 commit 6b13100
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions lua/conform/formatters/joker.lua
Original file line number Diff line number Diff line change
@@ -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", "-" },
}

0 comments on commit 6b13100

Please sign in to comment.