Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rufo support #132

Merged
merged 2 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions doc/conform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions lua/conform/formatters/rufo.lua
Original file line number Diff line number Diff line change
@@ -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 },
}