Getting crazy with vim-plug

In an effort to reduce the amount of manual lifting being done, I'm
finally coming back around to using a plugin manager for [n]vim.

Also formally swapping `vim` references for `nvim`.
This commit is contained in:
Josh Sherman 2022-02-27 14:47:54 -06:00
parent feafeaf8da
commit 1769b16f23
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
6 changed files with 23 additions and 356 deletions

28
install
View file

@ -14,9 +14,6 @@ for COMMAND in $COMMANDS; do
done
DOTFILES=$HOME/.dotfiles
DOTLOCAL=$HOME/.local/share/dotfiles
GITCLONE="git clone --depth=1"
if [ ! -d "$DOTFILES" ]; then
git clone git@github.com:joshtronic/dotfiles.git "$DOTFILES"
@ -26,33 +23,8 @@ else
git pull origin main
fi
rm -rf "$DOTLOCAL"
mkdir -p "$DOTLOCAL"
stow git screen vim zsh
VIMPLUGS=(
# File exploration and navigation
"junegunn/fzf.vim"
# Languages and syntax
"sheerun/vim-polyglot"
# Style guide and linting
"dense-analysis/ale"
"editorconfig/editorconfig-vim"
# TypeScript
"leafgarland/typescript-vim"
"Quramy/tsuquyomi"
)
for INDEX in ${!VIMPLUGS[*]}; do
VIMPLUG="${VIMPLUGS[$INDEX]}"
PLUGDIR=$(echo "$VIMPLUG" | cut -d '/' -f2)
$GITCLONE "https://github.com/$VIMPLUG.git" "$HOME/.vim/pack/plugins/start/$PLUGDIR"
done
cd "$HOME" || exit
rm -f "${HOME}/.zcompdump*"