summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--doc/conform.txt1
-rw-r--r--lua/conform/formatters/roc.lua10
3 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index fab2b53..381fd41 100644
--- a/README.md
+++ b/README.md
@@ -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,
+}