diff options
author | Mads Hougesen <madshougesen@gmail.com> | 2024-03-18 18:46:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 10:46:03 -0700 |
commit | 293236aa7445fb24aba56d8e9a03be54d0c1c2e8 (patch) | |
tree | 768bfc615a810c61dae2d9029fb2974806ea3dc3 | |
parent | 46cb8285275a2657de70c07f4ae3f8e6ffc6a075 (diff) |
feat: add support for roc format (#342)
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/roc.lua | 10 |
3 files changed, 12 insertions, 0 deletions
@@ -266,6 +266,7 @@ You can view this list in vim with `:help conform-formatters` - [puppet-lint](https://github.com/puppetlabs/puppet-lint) - Check that your Puppet manifests conform to the style guide. - [reorder-python-imports](https://github.com/asottile/reorder-python-imports) - Rewrites source to reorder python imports - [rescript-format](https://rescript-lang.org/) - The built-in ReScript formatter. +- [roc](https://www.roc-lang.org/) - A fast, friendly, functional language. - [rubocop](https://github.com/rubocop/rubocop) - Ruby static code analyzer and formatter, based on the community Ruby style guide. - [rubyfmt](https://github.com/fables-tales/rubyfmt) - Ruby Autoformatter! (Written in Rust) - [ruff_fix](https://beta.ruff.rs/docs/) - An extremely fast Python linter, written in Rust. Fix lint errors. diff --git a/doc/conform.txt b/doc/conform.txt index 5ba7852..e0d1581 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -300,6 +300,7 @@ FORMATTERS *conform-formatter `puppet-lint` - Check that your Puppet manifests conform to the style guide. `reorder-python-imports` - Rewrites source to reorder python imports `rescript-format` - The built-in ReScript formatter. +`roc` - A fast, friendly, functional language. `rubocop` - Ruby static code analyzer and formatter, based on the community Ruby style guide. `rubyfmt` - Ruby Autoformatter! (Written in Rust) diff --git a/lua/conform/formatters/roc.lua b/lua/conform/formatters/roc.lua new file mode 100644 index 0000000..49fe619 --- /dev/null +++ b/lua/conform/formatters/roc.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/roc-lang/roc", + description = "A fast, friendly, functional language.", + }, + command = "roc", + args = { "format", "--stdin", "--stdout" }, + stdin = true, +} |