1
0
This commit is contained in:
Jeff Lance 2024-02-27 16:18:56 +01:00
parent de16b0a371
commit 20c6e3cd9d

View File

@ -3,9 +3,12 @@
set -euxo pipefail set -euxo pipefail
packages=( packages=(
cargo
neovim neovim
python-pynvim
npm npm
python-pip
python-pynvim
ripgrep
) )
echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m" 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}} {{- end}}
## Install packages ## Install packages
{{- if ne .chezmoi.username "root" }} packages=(${packages[@]//neovim/})
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing python3-pynvim npm packages=(${packages[@]//cargo/})
{{- else }} packages=(${packages[@]//python/python3})
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing python3-pynvim npm
{{- end }}
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 }} {{- end }}