aboutsummaryrefslogtreecommitdiff
path: root/bin/vim-pack
diff options
context:
space:
mode:
Diffstat (limited to 'bin/vim-pack')
-rwxr-xr-xbin/vim-pack46
1 files changed, 44 insertions, 2 deletions
diff --git a/bin/vim-pack b/bin/vim-pack
index 0a6240e..f03cfa0 100755
--- a/bin/vim-pack
+++ b/bin/vim-pack
@@ -7,19 +7,28 @@ package_dirs=()
update_package () {
name=$1
remote_url=$2
- load_type=$3
+
+ load_type='start'
+ [ $# -ge 3 ] && load_type=$3
package_dir="$HOME/.vim/pack/vendor/$load_type/$name"
package_dirs+=($package_dir)
if [ ! -d $package_dir ]; then
echo "$name : Installing ... "
mkdir -p $package_dir
+ cd $package_dir
git clone --depth 1 $remote_url $package_dir && echo "$name : Done" || echo "$name : FAIL"
else
cd $package_dir
echo "$name : Updating ... "
git pull && echo "$name : Done" || echo "$name : FAIL"
fi
+
+ git submodule update --init --recursive --depth 1
+
+ if [ $# -ge 4 ]; then
+ $4
+ fi
}
clean () {
@@ -37,6 +46,39 @@ clean () {
done
}
-update_package "nnn.vim" "[email protected]:mcchrish/nnn.vim.git" "opt"
+install_ycm () {
+ opts=' --clangd-completer'
+
+ if [ -f /usr/bin/go -o -f /usr/local/bin/go ]; then
+ opts="$opts --go-completer"
+ fi
+
+ python3 ./install.py $opts
+}
+
+update_package 'YouCompleteMe' '[email protected]:ycm-core/YouCompleteMe.git' 'start' 'install_ycm'
+update_package "nnn.vim" "[email protected]:mcchrish/nnn.vim.git"
+update_package 'vim-fugitive' '[email protected]:tpope/vim-fugitive.git'
+update_package 'fzf' '[email protected]:junegunn/fzf.git'
+update_package 'fzf.vim' '[email protected]:junegunn/fzf.vim.git'
+update_package 'ultisnips' '[email protected]:SirVer/ultisnips.git'
+update_package 'vim-snippets' '[email protected]:honza/vim-snippets.git'
+update_package 'onedark.vim' '[email protected]:joshdick/onedark.vim.git' 'opt'
+update_package vim-lsp [email protected]:prabirshrestha/vim-lsp.git
+update_package undotree [email protected]:mbbill/undotree.git
+update_package ale [email protected]:dense-analysis/ale.git
+update_package vim-eunuch [email protected]:tpope/vim-eunuch.git
+update_package vim-sleuth [email protected]:tpope/vim-sleuth.git
+update_package tabular [email protected]:godlygeek/tabular.git
+update_package vim-rooter [email protected]:airblade/vim-rooter.git
+update_package vim-gutentags [email protected]:ludovicchabant/vim-gutentags.git
+update_package vim-airline [email protected]:vim-airline/vim-airline.git
+update_package vim-airline-themes [email protected]:vim-airline/vim-airline-themes.git
+update_package vim-easymotion [email protected]:easymotion/vim-easymotion.git
+update_package editorconfig-vim [email protected]:editorconfig/editorconfig-vim.git
+update_package vim-godot [email protected]:habamax/vim-godot.git
+update_package vim-ledger [email protected]:ledger/vim-ledger.git
+update_package vim-signify [email protected]:mhinz/vim-signify.git
+update_package vim-unimpaired [email protected]:tpope/vim-unimpaired.git
clean