From cc5d3d593412f58c45b5832a621f8bfc824ee65d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 3 Jun 2018 12:03:17 +0100 Subject: [PATCH] Remove need for rust sources --- common/configure_fresh_system.sh | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/common/configure_fresh_system.sh b/common/configure_fresh_system.sh index 024f6e89..154d06d9 100755 --- a/common/configure_fresh_system.sh +++ b/common/configure_fresh_system.sh @@ -100,26 +100,19 @@ if [[ -z $NORUST ]]; then rustup install stable rustup install nightly rustup default stable + rustup component add rls-preview --toolchain stable rustup component add rust-analysis --toolchain stable rustup component add rust-src --toolchain stable + rustup component add rls-preview --toolchain nightly rustup component add rust-analysis --toolchain nightly rustup component add rust-src --toolchain nightly export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib - cd "$DIR/../" - echo "getting rust sources..." - if [[ ! -d rust ]]; then - git clone https://github.com/rust-lang/rust.git --recursive - else - cd rust - git pull - git submodule update --init --recursive - fi set +e - cargo install cargo-update rustfmt racer rustsym ripgrep + cargo install cargo-update racer rustsym ripgrep rustup run nightly cargo install clippy set -e fi @@ -168,17 +161,6 @@ if [[ -z $NOVIM ]]; then echo "Installing Vim plugins" echo "\n" | vim +PlugClean! +qa echo "\n" | vim +PlugInstall! +qa - - if [[ -z $NOYCM ]]; then - echo "configuring YouCompleteMe" - cd ~/.vim/bundle/YouCompleteMe - git submodule update --init --recursive - if [[ -z $NOPYTHON3 ]]; then - python3 ./install.py --clang-completer --racer-completer --tern-completer - else - python ./install.py --clang-completer --racer-completer --tern-completer - fi - fi fi if [[ -z $NO_GO ]]; then