diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/fprettify.lua | 14 |
3 files changed, 16 insertions, 0 deletions
@@ -223,6 +223,7 @@ You can view this list in vim with `:help conform-formatters` - [fnlfmt](https://git.sr.ht/~technomancy/fnlfmt) - A formatter for Fennel code. - [forge_fmt](https://github.com/foundry-rs/foundry) - Forge is a command-line tool that ships with Foundry. Forge tests, builds, and deploys your smart contracts. - [fourmolu](https://hackage.haskell.org/package/fourmolu) - A fork of ormolu that uses four space indentation and allows arbitrary configuration. +- [fprettify](https://github.com/fortran-lang/fprettify) - Auto-formatter for modern fortran 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. - [gersemi](https://github.com/BlankSpruce/gersemi) - A formatter to make your CMake code the real treasure. diff --git a/doc/conform.txt b/doc/conform.txt index 3e28344..315e68a 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -262,6 +262,7 @@ FORMATTERS *conform-formatter builds, and deploys your smart contracts. `fourmolu` - A fork of ormolu that uses four space indentation and allows arbitrary configuration. +`fprettify` - Auto-formatter for modern fortran source code. `gci` - GCI, a tool that controls Go package import order and makes it always deterministic. `gdformat` - A formatter for Godot's gdscript. diff --git a/lua/conform/formatters/fprettify.lua b/lua/conform/formatters/fprettify.lua new file mode 100644 index 0000000..b63a828 --- /dev/null +++ b/lua/conform/formatters/fprettify.lua @@ -0,0 +1,14 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/fortran-lang/fprettify", + description = "Auto-formatter for modern fortran source code.", + }, + command = "fprettify", + args = { + -- --silent is recommended for editor integrations https://github.com/fortran-lang/fprettify?tab=readme-ov-file#editor-integration + "--silent", + "-", + }, + stdin = true, +} |