Installs racer, cargo-update and set +nightly

This commit is contained in:
Thomas Forgione 2020-02-10 08:32:43 +01:00
parent 3b21af203a
commit 683164bff0
1 changed files with 16 additions and 0 deletions

View File

@ -340,6 +340,22 @@ configure_rust() {
fi fi
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y
cargo_update_installed=1
yes_no_ask "do you wish to install cargo-update? it allows to update package automatically"
if [ $? -eq 0 ]; then
cargo_update_installed=0
cargo install cargo-update
fi
yes_no_ask "do you wish to install racer? it enabled rust completion from vim"
if [ $? -eq 0 ]; then
rustup toolchain add nightly
cargo +nightly install racer
if [ $cargo_update_installed -eq 0 ]; then
cargo install-update-config -t nightly racer
fi
fi
} }
main() { main() {