radian-software / apheleia

🌷 Run code formatter on buffer contents without moving point, using RCS patches and dynamic programming.
MIT License
557 stars 75 forks source link

Support for rome (https://rome.tools/) #157

Open TheKnarf opened 1 year ago

TheKnarf commented 1 year ago

It would be nice if a project have a rome.json config file that it could use rome to format the code. We recently switched in a project from using prettier to use rome instead.

We can run the rome formater manually by running yarn rome format . --write in the project. So I assume that this command needs to be run by aphelia instead of prettier.

raxod502 commented 1 year ago

Sure. That seems fine to add as a separate formatter that you can enable instead of Prettier, if desired.