From aca5d307232a22600bd0ab57571a8b6e2dc9a12c Mon Sep 17 00:00:00 2001 From: Estifanos Beyene <95101485+justEstif@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:57:53 -0400 Subject: feat: add rufo support (#132) * feat: add rufo support * feat: shorter description --- README.md | 1 + doc/conform.txt | 1 + lua/conform/formatters/rufo.lua | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 lua/conform/formatters/rufo.lua diff --git a/README.md b/README.md index 3a685a9..00c3f4f 100644 --- a/README.md +++ b/README.md @@ -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 }, +} -- cgit v1.2.3-70-g09d2