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

Allow using regal fix as a formatter #839

Open
anderseknert opened this issue Jun 15, 2024 · 0 comments
Open

Allow using regal fix as a formatter #839

anderseknert opened this issue Jun 15, 2024 · 0 comments

Comments

@anderseknert
Copy link
Member

anderseknert commented Jun 15, 2024

It would be nice to be able to set the equivalent LSP command for regal fix as the formatter for Rego, which would make it possible to have "format on save" run regal fix instead of opa fmt. Since regal fix is 100% compatible with opa fmt, this would simply be fmt with some nice additions, and more to come if we start looking into ordering of imports, and so on.

Looking into if it's possible to provide this via the LSP initialization options from the client would be a good first step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: TODO
Development

No branches or pull requests

1 participant