Skip to content

Commit

Permalink
chezmoi: make nvim a non-optional part
Browse files Browse the repository at this point in the history
  • Loading branch information
yacoob committed Nov 21, 2024
1 parent d30f7c4 commit b08aae5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions home/.chezmoiscripts/run_once_after_10-nvim.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,8 @@ set -eux

{{ if eq .chezmoi.osRelease.id "debian" }}
eg=~/.local/bin/eget
sudo apt install -y --no-install-suggests --no-install-recommends \
{{ if .devEnv }} build-essential {{ else }} vim-tiny {{ end }}
sudo apt purge -y \
{{ if .devEnv }} vim-tiny {{ else }} build-essential {{ end }}
sudo apt install -y --no-install-suggests --no-install-recommends build-essential
sudo apt clean && sudo apt autoremove -y
{{ if .devEnv -}}
${eg} neovim/neovim -a appimage --to=~/.appimages/neovim.appimage
ln -fs ~/.appimages/neovim.appimage ~/.local/bin/nvim
{{ else }}
# remove all nvim-related symlinks and appimages
rm -f ~/.local/bin/nvim ~/.appimages/neovim.appimage
{{ end }}
${eg} neovim/neovim -a appimage --to=~/.appimages/neovim.appimage
ln -fs ~/.appimages/neovim.appimage ~/.local/bin/nvim
{{ end }}

0 comments on commit b08aae5

Please sign in to comment.