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

Add support for running rustfmt on each save #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

coopergillan
Copy link
Collaborator

What

Add a one-line rust_mappings.vim file allowing rustfmt to be automatically run when a buffer is saved, then include that runtime in vimrc.

Note that this only leveraging existing functionality in the already-implemented rust-lang/rust.vim plugin. See "Formatting with rustfmt" docs here.

Why

This will allow for a more consistent style used throughout Rust projects by running the formatter on each save.

@aklitzke - any issues with having rustfmt run automatically on save?

Add a one-line rust_mappings.vim file allowing `rustfmt` to be
automatically run when a buffer is saved, then include that
runtime in `vimrc`.

This will allow for a more consistent style used throughout Rust
projects by running the formatter on each save.
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