Skip to content

Format ruby with standard or rubocop as appropriate#26

Open
derekprior wants to merge 2 commits into
mainfrom
add-formatting
Open

Format ruby with standard or rubocop as appropriate#26
derekprior wants to merge 2 commits into
mainfrom
add-formatting

Conversation

@derekprior
Copy link
Copy Markdown
Owner

@derekprior derekprior commented Jan 15, 2025

Add support for Ruby formatting in Neovim configuration.

  • Add ruby to the formatters_by_ft table with a custom function to check for the presence of standard.yml or Gemfile containing gem "standard" to determine the formatter.
  • Use standardrb as the formatter if standard.yml or gem "standard" is found, otherwise use rubocop.

For more details, open the Copilot Workspace session.

Add support for Ruby formatting in Neovim configuration.

* Add `ruby` to the `formatters_by_ft` table with a custom function to check for the presence of `standard.yml` or `Gemfile` containing `gem "standard"` to determine the formatter.
* Use `standardrb` as the formatter if `standard.yml` or `gem "standard"` is found, otherwise use `rubocop`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace-dev.githubnext.com/derekprior/dotfiles?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant