-
Notifications
You must be signed in to change notification settings - Fork 302
Added support for rustfmt before save #49
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
Conversation
I really enjoyed this feature from [vim-go](https://github.com/fatih/vim-go) so I copied it for rust & rustfmt.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@@ -0,0 +1,80 @@ | |||
" WTF License |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a "real" license, so I wonder if we can take it...
General 👍 on this idea, for sure. |
I'm happy to update the license, was just a bit lazy when putting this together. The vim-go plugin I was working off of is BSD licensed, this repo has no license, and I guess rust itself is licensed under the Apache & MIT licenses? Would appreciate a recommendation as to the correct license to satisfy all of the above. A more annoying (for me anyways 😉) problem: the vim-go plugin works by writing the buffer contents to a temporary file, then calling |
All Rust stuff is MIT/ Apache2, we forgot to add the license locally when we moved it out of the main repo Sent from my iPhone
|
Given that there isn't a license on anything else, I've simply removed that line. |
Was doing this myself! @grncdr Could you add a @steveklabnik What's outstanding for @grncdr to do to get this merged? Happy to help. |
I'm horrible at vimscript, so I'm not sure. Let's say that yeah, we need that |
@grncdr I know the vim-go function adds errors to the quickfix list, but do you think the location list might be a better option? That way you can keep the errors for multiple windows in their respective location lists. Syntastic adds errors to the loclist for this reason. EDIT: Sidenote as they're not linked, this'll fix #43. |
So, I guess this feature has been merged in #52, but this pull was left dangling? |
Yeah, it looks that way to me. |
I really enjoyed this feature from vim-go
so I copied it for rust & rustfmt.