2020-07-22 01:02:05 +00:00
|
|
|
if [[ ! -f "${HOME}/.vim/autoload/plug.vim" ]]; then
|
|
|
|
wget --directory-prefix=../.vim/autoload https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
|
|
fi
|
2019-02-05 05:43:53 +00:00
|
|
|
|
2021-01-06 23:23:02 +00:00
|
|
|
if [[ ! -f "${HOME}/clang-format.py" ]]; then
|
|
|
|
wget --directory-prefix=${HOME}/.vim/clang-format.py https://raw.githubusercontent.com/llvm/llvm-project/main/clang/tools/clang-format/clang-format.py
|
|
|
|
fi
|
|
|
|
|
2020-11-05 03:41:47 +00:00
|
|
|
#
|
|
|
|
# Dependencies
|
|
|
|
#
|
2020-10-20 12:57:45 +00:00
|
|
|
sudo apt install exuberant-ctags neovim clang-format ripgrep
|
2019-02-05 05:43:53 +00:00
|
|
|
|
2020-11-05 03:41:47 +00:00
|
|
|
#
|
|
|
|
# NVim
|
|
|
|
#
|
|
|
|
cp --force Installer/_vimrc ~/.vimrc
|
|
|
|
cp --force Installer/unix_nvim_init.vim ~/.config/nvim/init.vim
|
2021-01-06 23:23:02 +00:00
|
|
|
cp --force Installer/clang-format-style-file ~/_clang-format
|
2020-11-05 03:41:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Ctags
|
|
|
|
#
|
|
|
|
mkdir --parents Bin
|
|
|
|
rm --force Bin/ctags_cpp.sh
|
|
|
|
echo ctags --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ \$\@ >> Bin/ctags_cpp.sh
|
|
|
|
chmod +x Bin/ctags_cpp.sh
|