sync/applications/youcompleteme.sh

18 lines
531 B
Bash
Executable File

#!/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
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."