Skip to content

Commit

Permalink
feat: add fantomas formatter (#302)
Browse files Browse the repository at this point in the history
* feat: add fantomas formatter

* fantomas: + args

* fantomas: + stdin = false
  • Loading branch information
kumkee committed Feb 20, 2024
1 parent 61cff43 commit 0d99714
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ You can view this list in vim with `:help conform-formatters`
- [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.
- [fantomas](https://github.com/fsprojects/fantomas) - F# source code formatter.
- [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.
Expand Down
10 changes: 10 additions & 0 deletions lua/conform/formatters/fantomas.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/fsprojects/fantomas",
description = "F# source code formatter.",
},
command = "fantomas",
args = { "$FILENAME" },
stdin = false,
}

0 comments on commit 0d99714

Please sign in to comment.