diff options
author | Mahan <mahan.rahmati@protonmail.com> | 2023-08-27 20:04:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-27 13:04:08 -0700 |
commit | 446aa570048586f9c13f1ea88e280567f336691e (patch) | |
tree | 9ab253d139f8d8f2dff51aee59c97a16ed33c59d | |
parent | f86cd7f475d5b0d3ab0b0b57b8edaa06ac911e0b (diff) |
feat: new formatter: fish_indent (#5)
* feat: add fish_indent
* feat: update readme to add fish_indent
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | lua/conform/formatters/fish_indent.lua | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -176,6 +176,7 @@ To view configured and available formatters, as well as to see the path to the l - [elm_format](https://github.com/avh4/elm-format) - elm-format formats Elm source code according to a standard set of rules based on the official [Elm Style Guide](https://elm-lang.org/docs/style-guide). - [erb_format](https://github.com/nebulab/erb-formatter) - Format ERB files with speed and precision. - [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. - [gdformat](https://github.com/Scony/godot-gdscript-toolkit) - A formatter for Godot's gdscript. - [gofmt](https://pkg.go.dev/cmd/gofmt) - Formats go programs. - [gofumpt](https://github.com/mvdan/gofumpt) - Enforce a stricter format than gofmt, while being backwards compatible. That is, gofumpt is happy with a subset of the formats that gofmt is happy with. diff --git a/lua/conform/formatters/fish_indent.lua b/lua/conform/formatters/fish_indent.lua new file mode 100644 index 0000000..1501072 --- /dev/null +++ b/lua/conform/formatters/fish_indent.lua @@ -0,0 +1,8 @@ +---@type conform.FormatterConfig +return { + meta = { + url = "https://fishshell.com/docs/current/cmds/fish_indent.html", + description = "Indent or otherwise prettify a piece of fish code.", + }, + command = "fish_indent", +} |