From af6643afa10e17c0228da97c84d4c32f144a6ad3 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Mon, 11 Dec 2023 16:46:23 +0100 Subject: feat: add fnlfmt formatter (#247) --- README.md | 1 + lua/conform/formatters/fnlfmt.lua | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 lua/conform/formatters/fnlfmt.lua diff --git a/README.md b/README.md index e6615e6..f320b23 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,7 @@ You can view this list in vim with `:help conform-formatters` - [eslint_d](https://github.com/mantoni/eslint_d.js/) - Like ESLint, but faster. - [fish_indent](https://fishshell.com/docs/current/cmds/fish_indent.html) - Indent or otherwise prettify a piece of fish code. - [fixjson](https://github.com/rhysd/fixjson) - JSON Fixer for Humans using (relaxed) JSON5. +- [fnlfmt](https://git.sr.ht/~technomancy/fnlfmt) - A formatter for Fennel code. - [fourmolu](https://hackage.haskell.org/package/fourmolu) - Fourmolu is a formatter for Haskell source code. - [gci](https://github.com/daixiang0/gci) - GCI, a tool that controls Go package import order and makes it always deterministic. - [gdformat](https://github.com/Scony/godot-gdscript-toolkit) - A formatter for Godot's gdscript. diff --git a/lua/conform/formatters/fnlfmt.lua b/lua/conform/formatters/fnlfmt.lua new file mode 100644 index 0000000..3cc03b8 --- /dev/null +++ b/lua/conform/formatters/fnlfmt.lua @@ -0,0 +1,9 @@ +--@type conform.FileFormatterConfig +return { + meta = { + url = "https://git.sr.ht/~technomancy/fnlfmt", + description = "A formatter for Fennel code.", + }, + command = "fnlfmt", + args = { "-" }, +} -- cgit v1.2.3-70-g09d2