Merge branch 'master' of github.com:doy-lee/doy-lee

This commit is contained in:
doyle 2022-01-29 17:06:42 +11:00
commit 3b1c87f322

View File

@ -1,6 +1,13 @@
vim_dir=${HOME}/.vim vim_dir=${HOME}/.vim
vim_plug_dir=${vim_dir}/autoload vim_plug_dir=${vim_dir}/autoload
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
tools_dir=${script_dir}/Tools
bin_dir=${tools_dir}/binaries
mkdir --parents ${vim_plug_dir} mkdir --parents ${vim_plug_dir}
mkdir --parents ${bin_dir}
mkdir --parents ~/.config/nvim
if [[ ! -f "${vim_plug_dir}/plug.vim" ]]; then if [[ ! -f "${vim_plug_dir}/plug.vim" ]]; then
wget --directory-prefix=${vim_plug_dir} https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim wget --directory-prefix=${vim_plug_dir} https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
@ -10,24 +17,21 @@ if [[ ! -f "${vim_dir}/clang-format.py" ]]; then
wget --directory-prefix=${vim_dir} https://raw.githubusercontent.com/llvm/llvm-project/main/clang/tools/clang-format/clang-format.py wget --directory-prefix=${vim_dir} https://raw.githubusercontent.com/llvm/llvm-project/main/clang/tools/clang-format/clang-format.py
fi fi
# # ------------------------------------------------------------------------------
# Dependencies # Dependencies
# # ------------------------------------------------------------------------------
sudo apt install exuberant-ctags neovim clang-format ripgrep sudo apt install exuberant-ctags neovim clang-format ripgrep
# # ------------------------------------------------------------------------------
# NVim # NVim
# # ------------------------------------------------------------------------------
mkdir --parents ~/.config/nvim cp --force ${script_dir}/Installer/_vimrc ~/.vimrc
cp --force ${script_dir}/Installer/unix_nvim_init.vim ~/.config/nvim/init.vim
cp --force ${script_dir}/Installer/clang_format_style_file ~/_clang-format
cp --force Installer/_vimrc ~/.vimrc # ------------------------------------------------------------------------------
cp --force Installer/unix_nvim_init.vim ~/.config/nvim/init.vim
cp --force Installer/clang-format-style-file ~/_clang-format
#
# Ctags # Ctags
# # ------------------------------------------------------------------------------
mkdir --parents Bin rm --force ${bin_dir}/ctags_cpp.sh
rm --force Bin/ctags_cpp.sh echo ctags --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ \$\@ >> ${bin_dir}/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 chmod +x Bin/ctags_cpp.sh