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.