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