From b9f41964c6bb7107d2c71674e6d90a4f97e210e5 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 4 Mar 2020 10:30:51 +0100 Subject: Fixed ycm compilation --- bash/.bashrc | 12 +++++------- vim/.vim/vimrc | 8 ++++++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index b910453..cd6c966 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -217,6 +217,11 @@ if exists lpass; then cmp=${COMP_WORDS[COMP_CWORD]} search="$(sed 's/\\\ /___/g' <<< $cmp)" + + if [ -z "$search" ]; then + return + fi + items=$(lpass ls --format "%an$newline%aN" | sed "s/\ /___/g") for item in $items; do @@ -256,13 +261,6 @@ if exists pyenv; then export PATH="$PATH:$(pyenv root)/shims" fi -if exists xcrun; then - SDK_PATH="$(xcrun --show-sdk-path)" - PATH="$PATH:$(xcrun --show-sdk-path)/usr/bin" - export C_INCLUDE_PATH="$C_INCLUDE_PATH:$SDK_PATH/usr/include" - export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:$SDK_PATH/usr/include" -fi - if exists python3; then alias pyhttpd="python3 -m http.server" fi diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index 8785a22..3e4076f 100755 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -14,7 +14,7 @@ Plug 'unblevable/quick-scope' Plug 'vim-airline/vim-airline-themes' if executable('ansible') -Plug 'chase/vim-ansible-yaml' + Plug 'chase/vim-ansible-yaml' endif if has('python') || has('python3') @@ -28,6 +28,10 @@ if has('python') || has('python3') let g:ycm_install_command .= ' --gocode-completer' endif + if executable('rustc') + let g:ycm_install_command .= ' --rust-completer' + endif + Plug 'Valloric/YouCompleteMe', {'do': g:ycm_install_command} endif @@ -77,7 +81,7 @@ set ignorecase set smartcase " capital letters = case sensitive " Disable ex mode -" nnoremap Q +nnoremap Q " Save as sudo cnoremap w!! w !sudo tee > /dev/null % -- cgit v1.2.3