Add updated ycm config
This commit is contained in:
parent
b6b8bfa359
commit
4709b4eb28
20
applications/youcompleteme-old.sh
Executable file
20
applications/youcompleteme-old.sh
Executable 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."
|
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user