fix: fish/nvim

This commit is contained in:
Andrejus
2021-04-22 19:05:29 +01:00
parent d768d3da1a
commit 1ba16634de
3 changed files with 17 additions and 10 deletions

View File

@@ -1,15 +1,17 @@
#!/usr/bin/env bash
# Install neovim from unstable debian repo
curl -fsSL "https://ftp-master.debian.org/keys/archive-key-10.asc" | sudo apt-key add -
echo "deb http://deb.debian.org/debian unstable main" \
| sudo tee /etc/apt/sources.list.d/unstable.list
echo "Package: neovim
Pin: release a=unstable
Pin-Priority: 900" \
| sudo tee /etc/apt/preferences.d/neovim
update
install neovim
if ! bin_in_path "nvim"; then
curl -fsSL "https://ftp-master.debian.org/keys/archive-key-10.asc" | sudo apt-key add -
echo "deb http://deb.debian.org/debian unstable main" \
| sudo tee /etc/apt/sources.list.d/unstable.list
echo "Package: neovim
Pin: release a=unstable
Pin-Priority: 900" \
| sudo tee /etc/apt/preferences.d/neovim
update
install neovim
fi
mkdir -p "$XDG_DATA_HOME/nvim/backup"
plug_dir="$XDG_DATA_HOME/nvim/site/autoload"