diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/rufo.lua | 8 |
3 files changed, 10 insertions, 0 deletions
@@ -221,6 +221,7 @@ You can view this list in vim with `:help conform-formatters` - [prettier](https://github.com/prettier/prettier) - Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. - [prettierd](https://github.com/fsouza/prettierd) - prettier, as a daemon, for ludicrous formatting speed. - [rubocop](https://github.com/rubocop/rubocop) - Ruby static code analyzer and formatter, based on the community Ruby style guide. +- [rufo](https://github.com/ruby-formatter/rufo) - Rufo is as an opinionated ruby formatter. - [ruff_fix](https://beta.ruff.rs/docs/) - An extremely fast Python linter, written in Rust. Fix lint errors. - [ruff_format](https://beta.ruff.rs/docs/) - An extremely fast Python linter, written in Rust. Formatter subcommand. - [rustfmt](https://github.com/rust-lang/rustfmt) - A tool for formatting rust code according to style guidelines. diff --git a/doc/conform.txt b/doc/conform.txt index 56cbb39..56adc51 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -235,6 +235,7 @@ FORMATTERS *conform-formatter `prettierd` - prettier, as a daemon, for ludicrous formatting speed. `rubocop` - Ruby static code analyzer and formatter, based on the community Ruby style guide. +`rufo` - Rufo is as an opinionated ruby formatter. `ruff_fix` - An extremely fast Python linter, written in Rust. Fix lint errors. `ruff_format` - An extremely fast Python linter, written in Rust. Formatter subcommand. diff --git a/lua/conform/formatters/rufo.lua b/lua/conform/formatters/rufo.lua new file mode 100644 index 0000000..ac041fa --- /dev/null +++ b/lua/conform/formatters/rufo.lua @@ -0,0 +1,8 @@ +return { + meta = { + url = "https://github.com/ruby-formatter/rufo", + description = "Rufo is as an opinionated ruby formatter.", + }, + command = "rufo", + exit_codes = { 0, 3 }, +} |