- Download vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- Clone this repository.
- Copy vimrc to ~/.vimrc
- start vim, ignore erros and run :PlugInstall
- Install rls in bash
rustup component add rls rust-analysis rust-src
- Then in vim run
:CocInstall coc-rls
- Install racer
rustup toolchain add nightly
cargo +nightly install racer
- coc rust analyzer
:CocInstall coc-rust-analyzer
- Restart vim and choos Y when prompted to install rust analyzer.