diff setup @ 704:1e0f578f6752

Update vendor and add support for vim packs
author nanaya <me@nanaya.net>
date Sun, 18 Dec 2022 20:06:46 +0900
parents a9fbb21ab09c
children 500c3e9bf73f
line wrap: on
line diff
--- a/setup	Sun Dec 18 19:29:43 2022 +0900
+++ b/setup	Sun Dec 18 20:06:46 2022 +0900
@@ -173,6 +173,19 @@
   _echo ...done
 }
 
+_vim_packs() {
+  case "${1}" in
+    install) _echon "Symlinking vim packs...";;
+    uninstall) _echon "Removing vim packs...";;
+  esac
+
+  for i in "${basedir}/vendor/vim-packs"/*; do
+    pack_name="`basename "/${i}"`"
+    _echon "[${pack_name}]"
+    _rc "${1}" "../vendor/vim-packs/${pack_name}" ".vim/pack/default/opt/${pack_name}" > /dev/null
+  done
+}
+
 _upgrade() {
   for i in bash bash.after bash.before bin tcsh tcsh.after tcsh.before zsh zsh.after zsh.before; do
     src="${HOME}/.ecos_${i}"
@@ -213,6 +226,7 @@
     _vim_x "${1}" autoload
     _vim_x "${1}" colors
     _vim_x "${1}" syntax
+    _vim_packs "${1}"
     _rc "${1}" "vimrc" ".vimrc"
     _rc "${1}" "irbrc" ".irbrc"
   ;;