From cc1ebcfd866b2f8dd4cf6bdcb78563ec0fce8e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 2 Jul 2022 12:37:16 +0200 Subject: [PATCH] vim: Remove YouCompleteMe It's just too much hassle with all the compiling and random errors after updates. --- user.yml | 38 -------------------------------------- vim/vimrc | 1 - 2 files changed, 39 deletions(-) diff --git a/user.yml b/user.yml index 34e2206..7935cb1 100644 --- a/user.yml +++ b/user.yml @@ -302,20 +302,6 @@ src: ~/.vim/autoload/plug.vim force: true - - name: get ycm version before update - shell: | - if ! [[ -d ~/.local/share/nvim/plugged/YouCompleteMe ]] ; then - exit 200 - fi - cd ~/.local/share/nvim/plugged/YouCompleteMe - git rev-parse HEAD - args: - executable: /bin/bash - register: ycm_before_update - changed_when: false - failed_when: ycm_before_update.rc not in (0, 200) - tags: [user-update] - - name: install vim plugins command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall' register: vim_plugin_install @@ -335,30 +321,6 @@ command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall' changed_when: false tags: [user-update] - - - name: get ycm version after update - shell: | - cd ~/.local/share/nvim/plugged/YouCompleteMe - git rev-parse HEAD - args: - executable: /bin/bash - register: ycm_after_update - changed_when: false - tags: [user-update] - - - name: compile youcompleteme - shell: | - cd ~/.local/share/nvim/plugged/YouCompleteMe - python3 ./install.py - args: - executable: /bin/bash - register: ycm_compile_output - failed_when: ycm_compile_output.rc not in (0, 200) - when: > - (ycm_before_update.rc == 200) - or - (ycm_before_update.stdout != ycm_after_update.stdout) - tags: [user-update] tags: [vim-plugins] - block: diff --git a/vim/vimrc b/vim/vimrc index 69e0222..4a4fcc9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -25,7 +25,6 @@ Plug 'junegunn/goyo.vim' Plug 'junegunn/limelight.vim' " Plug 'sheerun/vim-polyglot' " Plug 'freitass/todo.txt-vim' -Plug 'Valloric/YouCompleteMe' Plug 'nathanaelkane/vim-indent-guides' "Plugin 'Lokaltog/vim-easymotion'