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:
parent
c9186c8722
commit
2a43c6d2e9
2 changed files with 12 additions and 14 deletions
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue