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(commands): make it possible to disable format-on-save via the 'auto-format' option #2321

Merged
merged 1 commit into from
May 2, 2022

Conversation

valpackett
Copy link
Contributor

Believe it or not, not all projects have jumped onto the auto-formatting hype train :D and sometimes it is desirable to be able to quickly :set-option auto-format false when working on something where rustfmt would introduce too much undesirable changes in git diff.

Copy link
Member

@archseer archseer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was already a per-language toggle, but having a global option is good too 👍🏻

https://github.com/helix-editor/helix/blob/a803235d0737d6d9c3ca1614c3e38def1b407a66/helix-view/src/document.rs#L400=

@archseer archseer merged commit 20162a4 into helix-editor:master May 2, 2022
@valpackett valpackett deleted the auto-format-cfg branch May 3, 2022 14:24
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.

2 participants