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:
parent
feafeaf8da
commit
1769b16f23
6 changed files with 23 additions and 356 deletions
28
install
28
install
|
@ -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*"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue