From b3939dd8111f52506b05a28209cd2e24500b1a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Sat, 9 Jul 2016 11:15:30 +0200 Subject: [PATCH 1/4] build all compelters for YCM --- common/configure_fresh_system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/configure_fresh_system b/common/configure_fresh_system index 6cc8ed2c..5dd0105f 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -45,7 +45,7 @@ source ~/.setenv cd "$DIR/.vim/bundle/YouCompleteMe/" git submodule update --init --recursive -python install.py --clang-completer +./install.py --all # symlink 'nodejs' as node on some systems # will replace symlink if it exists, but won't replace regular file From f8d88d67a64e0af6e822f0884018e8a494d506c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Sat, 9 Jul 2016 11:18:06 +0200 Subject: [PATCH 2/4] enable clang and racer explicitely for YCM --- common/configure_fresh_system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/configure_fresh_system b/common/configure_fresh_system index 5dd0105f..a4dd094a 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -45,7 +45,7 @@ source ~/.setenv cd "$DIR/.vim/bundle/YouCompleteMe/" git submodule update --init --recursive -./install.py --all +./install.py --racer-completer --clang-completer # symlink 'nodejs' as node on some systems # will replace symlink if it exists, but won't replace regular file From 80d45b604346452e7b9fad012d7727945cfc5260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Sat, 9 Jul 2016 11:21:52 +0200 Subject: [PATCH 3/4] move YCM to be built after rust and racer are already installed --- common/configure_fresh_system | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/configure_fresh_system b/common/configure_fresh_system index a4dd094a..4f778453 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -43,10 +43,6 @@ ln -vfs "$DIR/.config/redshift.conf" ~/.config/redshift.conf source ~/.setenv -cd "$DIR/.vim/bundle/YouCompleteMe/" -git submodule update --init --recursive -./install.py --racer-completer --clang-completer - # symlink 'nodejs' as node on some systems # will replace symlink if it exists, but won't replace regular file if [[ ! -f /usr/bin/node ]]; then @@ -92,6 +88,10 @@ fi cargo install -f rustfmt cargo install -f racer +cd "$DIR/.vim/bundle/YouCompleteMe/" +git submodule update --init --recursive +./install.py --racer-completer --clang-completer + # go export GOPATH="$HOME/go" mkdir -p "$GOPATH" From 6033245203f35096f1f31da50324d76a4c140ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Sat, 9 Jul 2016 11:35:41 +0200 Subject: [PATCH 4/4] do not use vim-racer nor install racer globally anymore, use YCM for completion solely --- .gitmodules | 3 --- .vim/bundle/racer | 1 - common/configure_fresh_system | 1 - fedora/configure_fresh_system | 2 +- 4 files changed, 1 insertion(+), 6 deletions(-) delete mode 160000 .vim/bundle/racer diff --git a/.gitmodules b/.gitmodules index 7799fb56..51cc99c1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -53,9 +53,6 @@ [submodule ".vim/bundle/rust.vim"] path = .vim/bundle/rust.vim url = https://github.com/rust-lang/rust.vim.git -[submodule ".vim/bundle/racer"] - path = .vim/bundle/racer - url = https://github.com/phildawes/racer.git [submodule ".vim/bundle/YouCompleteMe"] path = .vim/bundle/YouCompleteMe url = https://github.com/Valloric/YouCompleteMe.git diff --git a/.vim/bundle/racer b/.vim/bundle/racer deleted file mode 160000 index f877a066..00000000 --- a/.vim/bundle/racer +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f877a066cda349f8747a8d2de3ca7bcb4603dcfb diff --git a/common/configure_fresh_system b/common/configure_fresh_system index 4f778453..f7e48c1d 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -86,7 +86,6 @@ else fi cargo install -f rustfmt -cargo install -f racer cd "$DIR/.vim/bundle/YouCompleteMe/" git submodule update --init --recursive diff --git a/fedora/configure_fresh_system b/fedora/configure_fresh_system index fed9f69b..421decfa 100755 --- a/fedora/configure_fresh_system +++ b/fedora/configure_fresh_system @@ -8,7 +8,7 @@ sudo dnf -y --best --allowerasing install vim tmux atop zsh thunderbird thunderb FEDORA_VERSION=`rpm -E %fedora` sudo dnf -y install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$FEDORA_VERSION.noarch.rpm sudo dnf -y install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$FEDORA_VERSION.noarch.rpm -sudo dnf -y --best --allowerasing install vlc splix gutenprint-cups cups-bjnp keepass mplayer golang +sudo dnf -y --best --allowerasing install vlc splix gutenprint-cups cups-bjnp keepass mplayer golang ncurses-compat-libs sudo dnf -y groupinstall "C Development Tools and Libraries" if [[ -z $DONT_START_TOR ]]; then