sync/applications/youcompleteme.sh

18 lines
518 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..."
2017-11-19 23:14:12 -05:00
ARGS="--clang-completer"
2017-08-14 01:15:42 -04:00
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
2017-11-19 23:14:12 -05:00
./install.py $ARGS
2017-08-14 01:15:42 -04:00
popd
2015-07-17 08:27:36 -04:00
echo "It should be done."