2020-11-02 04:08:18 +00:00
|
|
|
#!/bin/sh
|
2020-09-17 10:24:35 +00:00
|
|
|
|
2020-11-02 04:08:18 +00:00
|
|
|
DIR=$(readlink -f "$(dirname "$0")")
|
|
|
|
. "$DIR/../env.sh"
|
2020-09-17 10:24:35 +00:00
|
|
|
|
|
|
|
# check dependencies
|
2020-11-04 06:05:09 +00:00
|
|
|
! command -v yarnpkg && "$PDIR/nodejs/install.sh"
|
|
|
|
! command -v pip && "$PDIR/python/install.sh"
|
2020-09-17 10:24:35 +00:00
|
|
|
|
|
|
|
# install nvim
|
|
|
|
case "$PM" in
|
|
|
|
apt)
|
|
|
|
sudo add-apt-repository ppa:neovim-ppa/stable -y
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y neovim
|
2020-11-03 17:26:57 +00:00
|
|
|
sudo pip3 install pyvim neovim
|
2020-09-17 10:24:35 +00:00
|
|
|
;;
|
|
|
|
pacman)
|
2020-09-18 18:01:58 +00:00
|
|
|
sudo pacman -S --needed neovim
|
2020-11-03 17:26:57 +00:00
|
|
|
sudo pip install pyvim neovim
|
2020-09-17 10:24:35 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# symlink configuration
|
2020-11-02 04:08:18 +00:00
|
|
|
lnsf "$DIR/config/init.vim" "$XDG_CONFIG_HOME/nvim/init.vim"
|
|
|
|
lnsf "$DIR/config/coc-settings.json" "$XDG_CONFIG_HOME/nvim/coc-settings.json"
|
|
|
|
lnsf "$DIR/config/init.vim" ~/.vimrc
|
2020-11-02 13:43:09 +00:00
|
|
|
lnsf "$DIR/config/coc-settings.json" ~/.vim/coc-settings.json
|