From 503e89c0af370de6cee2fed576186ec44d16efe2 Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Sat, 9 Nov 2019 14:12:28 +0100 Subject: [PATCH] install cmake + global autocompletion --- Brewfile | 1 + dot_scripts/bootstrap.sh | 5 ++++- dot_scripts/upgrade.sh | 1 + dot_vimrc | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Brewfile b/Brewfile index 4c9012a..3e38fe6 100644 --- a/Brewfile +++ b/Brewfile @@ -126,3 +126,4 @@ brew "go" brew "weechat" # need an IRC client brew "tflint" # terraform linter brew "ktlint" # kotlin linter +brew "cmake" # compiler, was needed for compiling YouCompleteMe, see https://github.com/ycm-core/YouCompleteMe diff --git a/dot_scripts/bootstrap.sh b/dot_scripts/bootstrap.sh index 4fb3baa..17d2f63 100755 --- a/dot_scripts/bootstrap.sh +++ b/dot_scripts/bootstrap.sh @@ -107,8 +107,11 @@ ln -snf ~/Code/dotfiles/dot_zshrc.pre-oh-my-zsh ~/.zshrc.pre-oh-my-zsh git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim vim +PluginInstall +qall -git clone https://github.com/dbeniamine/cheat.sh-vim.git ~/.vim/cheat.sh-vim +cd ~/.vim/bundle/YouCompleteMe +./install.py --clang-completer +cd ~/ +git clone https://github.com/dbeniamine/cheat.sh-vim.git ~/.vim/cheat.sh-vim # Install no-more-secrets git clone https://github.com/bartobri/no-more-secrets.git ~/Code/no-more-secrets diff --git a/dot_scripts/upgrade.sh b/dot_scripts/upgrade.sh index 8b90631..64d0ba4 100755 --- a/dot_scripts/upgrade.sh +++ b/dot_scripts/upgrade.sh @@ -16,3 +16,4 @@ pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n pip freeze > ~/requirements.txt # Update VIM plugins installed via Vundle https://github.com/VundleVim/Vundle.vim vim +PluginUpdate +qall + diff --git a/dot_vimrc b/dot_vimrc index 76b7df4..70563e4 100644 --- a/dot_vimrc +++ b/dot_vimrc @@ -39,6 +39,9 @@ Plugin 'dbeniamine/cheat.sh-vim' Plugin 'hashivim/vim-terraform' " A solid language pack for Vim. support for kotlin, terraform, groovy, ... Plugin 'sheerun/vim-polyglot' + +Plugin 'Valloric/YouCompleteMe' + " All of your Plugins must be added before the following line call vundle#end() filetype plugin indent on " required