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
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 }}