Add updated ycm config

This commit is contained in:
Austen Adler 2017-08-14 01:15:42 -04:00
parent b6b8bfa359
commit 4709b4eb28
2 changed files with 35 additions and 18 deletions

View File

@ -0,0 +1,20 @@
#!/bin/zsh
if [ ! "$1" = "-y" ]; then
# They want to assume yes, require no user input
echo "Make sure this is in your .vimrc"
echo "Plug 'https://github.com/Valloric/YouCompleteMe'"
echo -n "Press enter to continue..."
read a
fi
rm -rf ~/ycm_build
mkdir ~/ycm_build
cd ~/ycm_build
touch .nobackup
cmake -G "Unix Makefiles" . ~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp
cmake --build . --target ycm_core
#cd ~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/gocode
#go build
#cd ~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/tern_runtime
#npm install --production
cd -
echo "It should be done."

View File

@ -1,20 +1,17 @@
#!/bin/zsh
if [ ! "$1" = "-y" ]; then
# They want to assume yes, require no user input
echo "Make sure this is in your .vimrc"
echo "Plug 'https://github.com/Valloric/YouCompleteMe'"
echo -n "Press enter to continue..."
read a
#!/bin/bash
# Make sure this is in your .vimrc
# Plug 'https://github.com/Valloric/YouCompleteMe'
pushd ~/.vim/plugged/YouCompleteMe
echo "Compiling with clang support..."
ARGS="--clang completer"
if command -v cargo 2>&1 > /dev/null && command -v rustc 2>&1 > /dev/null; then
echo "Compiling with rust support..."
ARGS="$ARGS --racer-completer"
fi
rm -rf ~/ycm_build
mkdir ~/ycm_build
cd ~/ycm_build
touch .nobackup
cmake -G "Unix Makefiles" . ~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp
cmake --build . --target ycm_core
#cd ~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/gocode
#go build
#cd ~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/tern_runtime
#npm install --production
cd -
if command -v go 2>&1 > /dev/null; then
echo "Compiling with go support..."
ARGS="$ARGS --gocode-completer"
fi
./install.py --clang-completer
popd
echo "It should be done."