I've been thinking about my work setup recently and am interested in putting in some effort to try to make myself a bit more productive. Until now, I've been doing all my Rust coding in neovim without any plugins in action except for rust-lang/rust.vim, which gets me nice syntax highlighting. I've also been installing Rust from the stable .dmg files for macOS released every six weeks. In particular, I'm hearing more about and becoming more interested in:
Using Rustup to keep up to date with the latest releases
Using Clippy to handle linting, preferably every time I save a file
Auto formatting. Something like gofmt- I don't care much about style as long as its consistent and "sane"
So I'm wondering how other people do things. I want to stay in (neo)vim, because that's just what I like, and I'd really like to emulate as much of my Go setup as possible, wherein I have auto-linting and formatting performed every time I save a .go file in neovim. My understanding is that things like Clippy require nightly Rust, so I'm hoping someone has thought about an automatic way of writing code and linting under nightly but then actually compiling under the latest stable release of Rust.
Even if you don't have specific answers for me, it might be great to hear about your setup anyway, and if you have any little tools/scripts you'd like to share, I'm sure everyone would appreciate it.
Just Sublime Text 3, and a separate cmd or powershell window. I'll have cargo check-on-save enabled for small projects, but nothing large (due to cargo lockout). I don't use completion (because it's never worked well enough to be worth it), and I don't use rustfmt (because it's wrong and crazy). If I'm going through a big pile of errors, I'll build in ST3 and use "jump to next error"; otherwise I'll just alt+tab over and build in the console.
Crazy optimised setups are nice... right up until you can't use that editor for some reason, and then it's hell adjusting.
I've found intellij-rust to very helpful, especially when I was first starting out in Rust. It already supports autocompletion, code navigation (great when you want to quickly jump into a third party crate to see what's going on), can show you the types of function parameters while you type, and much more. It would have taken me much longer to learn Piston without this tool.
Have you tried YouCompleteMe? It's a bit of a pain to setup though but it supports Rust now using racerd. Although I only tried in in gvim/vim, not neovim. You might want to give it a try.