Skip to content

Instantly share code, notes, and snippets.

@amsharifian
Created April 24, 2020 16:49
Show Gist options
  • Save amsharifian/8656239a58b3db2a8942097dbeaa8bbf to your computer and use it in GitHub Desktop.
Save amsharifian/8656239a58b3db2a8942097dbeaa8bbf to your computer and use it in GitHub Desktop.
Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Instll rls for mac:
rustup component add rls --toolchain stable-x86_64-apple-darwin
git clone https://github.com/rust-lang/rust.vim ~/.vim/pack/plugins/start/rust.vim
git clone --depth=1 https://github.com/racer-rust/vim-racer.git ~/.vim/bundle/vim-racer
Into your .vimrc
set hidden
let g:racer_cmd = "/home/user/.cargo/bin/racer"
mkdir -p ~/Developer/
cd ~/Developer/
git clone --depth 1 --branch master https://github.com/rust-lang/rust rust-master
Add this to your .vimrc
let g:ycm_rust_src_path="/home/<username>/Developer/rust-master/src/"
Build YouCompleteMe
cd .vim/bundle/YouCompleteMe
install.py --rust-completer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment