aboutsummaryrefslogtreecommitdiff
path: root/install_plugins
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2021-02-02 10:53:12 -0700
committerCody Hiar <cody@hiar.ca>2021-02-02 10:53:12 -0700
commite91dd6453806cd157e66a70a0d4dae21a2a9a203 (patch)
tree5c55b87e67337dd0b5c3495373aa90b6b4c9464c /install_plugins
parenta04fce60554991b2d89bd9ba1ad4237857d20248 (diff)
Move from vim to neovim
Diffstat (limited to 'install_plugins')
-rwxr-xr-xinstall_plugins9
1 files changed, 9 insertions, 0 deletions
diff --git a/install_plugins b/install_plugins
new file mode 100755
index 0000000..1eca5e0
--- /dev/null
+++ b/install_plugins
@@ -0,0 +1,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