diff options
author | Mads Hougesen <mads@mhouge.dk> | 2024-06-01 21:09:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 12:09:44 -0700 |
commit | 969cdf50b011bec08b4fb8bd3ea3031df183501b (patch) | |
tree | 57ea29183a25b2e118994b14a347168e16921511 | |
parent | 9140d202b74f84402206b594e417736767a22248 (diff) |
feat(fortran): support findent (#426)
* feat: add support for findent
* refactor: use stdin instead of file
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/findent.lua | 9 |
3 files changed, 11 insertions, 0 deletions
@@ -220,6 +220,7 @@ You can view this list in vim with `:help conform-formatters` - [erlfmt](https://github.com/WhatsApp/erlfmt) - An automated code formatter for Erlang. - [eslint_d](https://github.com/mantoni/eslint_d.js/) - Like ESLint, but faster. - [fantomas](https://github.com/fsprojects/fantomas) - F# source code formatter. +- [findent](https://github.com/wvermin/findent) - Indent, relabel and convert Fortran sources. - [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. diff --git a/doc/conform.txt b/doc/conform.txt index 24052db..5a9e419 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -377,6 +377,7 @@ FORMATTERS *conform-formatter `cat -s`. `standardjs` - JavaScript Standard style guide, linter, and formatter. `standardrb` - Ruby's bikeshed-proof linter and formatter. +`findent` - Indent, relabel and convert Fortran sources. `stylelint` - A mighty CSS linter that helps you avoid errors and enforce conventions. `styler` - R formatter and linter. diff --git a/lua/conform/formatters/findent.lua b/lua/conform/formatters/findent.lua new file mode 100644 index 0000000..9f3a002 --- /dev/null +++ b/lua/conform/formatters/findent.lua @@ -0,0 +1,9 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/wvermin/findent", + description = "Indent, relabel and convert Fortran sources.", + }, + command = "findent", + stdin = true, +} |