diff --git a/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl b/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl index a459565..228e7c3 100644 --- a/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl @@ -6,7 +6,7 @@ packages=( curl wget tmux - neovim + zsh ) {{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}} diff --git a/home/.chezmoiscripts/run_onchange_80-install-lvim.sh b/home/.chezmoiscripts/run_onchange_80-install-lvim.sh index 7cf26f7..b29ae2c 100644 --- a/home/.chezmoiscripts/run_onchange_80-install-lvim.sh +++ b/home/.chezmoiscripts/run_onchange_80-install-lvim.sh @@ -1,3 +1,15 @@ -#!/bin/env bash +#!/usr/bin/env bash + +set -euxo pipefail + + +if [ ! $(command -v nvim) ]; then + {{- if ne .chezmoi.username "root" }} + sudo yay -S --noconfirm neovim python-pynvim + {{- else }} + yay -S --noconfirm neovim python-pynvim + {{- end }} +fi + LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh)