aboutsummaryrefslogtreecommitdiff
path: root/install
blob: 1eca5e0c9201ee630d5dd38c323ee89b3f1bfa0c (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

readonly PLUG_FILE="${HOME}/.config/nvim/autoload/plug.vim"
readonly PLUG_URL="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"

# Install plug if it doesn't exist
[[ ! -f "${PLUG_FILE}" ]] && curl -fLo "${PLUG_FILE}" --create-dirs "${PLUG_URL}" &> /dev/null
# Install neovim plugins
nvim -i NONE -c PlugInstall -c quitall > /dev/null 2>&1