Basic rust support in vscode linux (#149)

* Basic rust support in vscode linux

* Link in keybindings for vscode

* Install clippy
This commit is contained in:
Cyryl Płotnicki 2017-11-03 18:30:53 +00:00 committed by GitHub
parent c9186c8722
commit 2a43c6d2e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 14 deletions

View file

@ -9,5 +9,13 @@
"rust.cargoPath": "/home/cyryl/.cargo/bin/cargo",
"rust.cargoHome": "/home/cyryl/.cargo/",
"editor.wordWrap": true,
"vim.disableAnnoyingNeovimMessage": true
"vim.disableAnnoyingNeovimMessage": true,
"rust.rustup": {
"toolchain": "nightly-x86_64-unknown-linux-gnu",
"nightlyToolchain": "nightly-x86_64-unknown-linux-gnu"
},
"rust.mode": "rls",
"rust.rls": {
"useRustfmt": true
}
}

View file

@ -57,6 +57,7 @@ mkdir -p ~/.config/vdirsyncer/
ln -vfs "$DIR/.config/vdirsyncer/config" ~/.config/vdirsyncer/
mkdir -p ~/.config/Code/User
ln -vfs "$DIR/.config/Code/User/settings.json" ~/.config/Code/User/settings.json
ln -vfs "$DIR/.config/Code/User/keybindings.json" ~/.config/Code/User/keybindings.json
source ~/.setenv
@ -109,18 +110,7 @@ if [[ -z $NORUST ]]; then
set +e
cargo install cargo-update rustfmt racer rustsym ripgrep
cd "$DIR/../"
if [[ ! -d alacritty ]]; then
git clone https://github.com/jwilm/alacritty.git --recursive
cd alacritty
else
cd alacritty
git pull
git submodule update --init --recursive
fi
rustup override set stable
cargo install
rustup run nightly cargo install clippy
set -e
fi