2021-08-10 21:50:49 +02:00
|
|
|
if [ -f "$HOME/.config/nvim/init.lua" ]; then
|
|
|
|
echo " - moving old file to init.lua.BAK"
|
|
|
|
mv "$HOME/.config/nvim/init.lua" "$HOME/.config/nvim/init.lua.BAK"
|
2021-06-22 13:05:12 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo " - linking init.vim --> init.vim"
|
|
|
|
mkdir -p $HOME/.config/nvim
|
2021-08-10 21:50:49 +02:00
|
|
|
ln -s "$HOME/.dotfiles/configs/init.lua" "$HOME/.config/nvim/init.lua"
|
|
|
|
ln -s "$HOME/.dotfiles/configs/lua" "$HOME/.config/nvim/lua"
|
2021-06-22 13:05:12 +02:00
|
|
|
|
2021-08-10 21:50:49 +02:00
|
|
|
echo " - installing paq-nvim"
|
|
|
|
sh -c 'git clone --depth=1 https://github.com/savq/paq-nvim.git "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim'
|
2021-06-22 13:05:12 +02:00
|
|
|
|
|
|
|
echo " - installing vim plugins"
|
2021-08-10 21:50:49 +02:00
|
|
|
nvim --headless +PaqSync +qa
|