From 20c6e3cd9df76645cf735df9b4ed6ac3f35014ba Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Feb 2024 16:18:56 +0100 Subject: [PATCH] Up. --- ...run_onchange_after_80-install-lvim.sh.tmpl | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl index 1970959..15dce80 100644 --- a/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl @@ -3,9 +3,12 @@ set -euxo pipefail packages=( + cargo neovim - python-pynvim npm + python-pip + python-pynvim + ripgrep ) echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m" @@ -44,13 +47,21 @@ echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m" {{- end}} ## Install packages - {{- if ne .chezmoi.username "root" }} - DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing python3-pynvim npm - {{- else }} - DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing python3-pynvim npm - {{- end }} + packages=(${packages[@]//neovim/}) + packages=(${packages[@]//cargo/}) + packages=(${packages[@]//python/python3}) - mist install neovim + for package in ${packages[@]}; do + echo "installing ${package}..." + + {{- if ne .chezmoi.username "root" }} + DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package + {{- else }} + DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing $package + {{- end }} + done + + mist install cargo neovim {{- end }}