2020-09-17 10:24:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DIR=$(readlink -f $(dirname $0))
|
|
|
|
. $DIR/../env.sh
|
|
|
|
|
|
|
|
# check dependencies
|
|
|
|
! which yarnpkg && $ROOT/nodejs/install.sh
|
|
|
|
|
|
|
|
# install nvim
|
|
|
|
case "$PM" in
|
|
|
|
apt)
|
|
|
|
sudo add-apt-repository ppa:neovim-ppa/stable -y
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y neovim
|
|
|
|
;;
|
|
|
|
pacman)
|
2020-09-18 18:01:58 +00:00
|
|
|
sudo pacman -S --needed neovim
|
2020-09-17 10:24:35 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# symlink configuration
|
2020-09-18 04:16:15 +00:00
|
|
|
lnsf $DIR/config/init.vim ~/.config/nvim/init.vim
|
2020-09-17 16:02:24 +00:00
|
|
|
lnsf $DIR/config/init.vim ~/.vimrc
|