sync/applications/youcompleteme.sh

18 lines
531 B
Bash
Raw Normal View History

2017-08-14 01:15:42 -04:00
#!/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"
2016-07-27 01:02:38 -04:00
fi
2017-08-14 01:15:42 -04:00
if command -v go 2>&1 > /dev/null; then
echo "Compiling with go support..."
ARGS="$ARGS --gocode-completer"
fi
./install.py --clang-completer
popd
2015-07-17 08:27:36 -04:00
echo "It should be done."