aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--doc/conform.txt1
-rw-r--r--lua/conform/formatters/efmt.lua10
3 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4fe75df..5e5284d 100644
--- a/README.md
+++ b/README.md
@@ -214,6 +214,7 @@ You can view this list in vim with `:help conform-formatters`
- [djlint](https://github.com/Riverside-Healthcare/djLint) - ✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang.
- [dprint](https://github.com/dprint/dprint) - Pluggable and configurable code formatting platform written in Rust.
- [easy-coding-standard](https://github.com/easy-coding-standard/easy-coding-standard) - ecs - Use Coding Standard with 0-knowledge of PHP-CS-Fixer and PHP_CodeSniffer.
+- [efmt](https://github.com/sile/efmt) - Erlang code formatter.
- [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.
diff --git a/doc/conform.txt b/doc/conform.txt
index 315e68a..3c78aad 100644
--- a/doc/conform.txt
+++ b/doc/conform.txt
@@ -249,6 +249,7 @@ FORMATTERS *conform-formatter
`dprint` - Pluggable and configurable code formatting platform written in Rust.
`easy-coding-standard` - ecs - Use Coding Standard with 0-knowledge of PHP-CS-
Fixer and PHP_CodeSniffer.
+`efmt` - Erlang code formatter.
`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).
diff --git a/lua/conform/formatters/efmt.lua b/lua/conform/formatters/efmt.lua
new file mode 100644
index 0000000..59ebd38
--- /dev/null
+++ b/lua/conform/formatters/efmt.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/sile/efmt",
+ description = "Erlang code formatter.",
+ },
+ command = "efmt",
+ args = { "-" },
+ stdin = true,
+}