commit
bd6014d60d
20
install.sh
20
install.sh
@ -13,15 +13,16 @@ get_platform() {
|
|||||||
|
|
||||||
echo "installing packer"
|
echo "installing packer"
|
||||||
|
|
||||||
if [ ! -d ~/.local/share/nvim/site/pack/packer ]; then
|
if [ -d ~/.local/share/nvim/site/pack/packer ]; then
|
||||||
echo "Installing packer"
|
echo "Clearning previous packer installs"
|
||||||
git clone https://github.com/wbthomason/packer.nvim \
|
rm -rf ~/.local/share/nvim/site/pack
|
||||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
|
||||||
echo
|
|
||||||
echo "packer installed!"
|
|
||||||
echo
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -e "\n=> Installing packer"
|
||||||
|
git clone https://github.com/wbthomason/packer.nvim \
|
||||||
|
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||||
|
echo -e "=> packer installed!"
|
||||||
|
|
||||||
echo "Linking config"
|
echo "Linking config"
|
||||||
echo "old nvim config will be changed to nvim.bak if exists! :0"
|
echo "old nvim config will be changed to nvim.bak if exists! :0"
|
||||||
|
|
||||||
@ -49,9 +50,8 @@ else
|
|||||||
sed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings.lua
|
sed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings.lua
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "shell changed to $shellname on nvim successfully!"
|
echo -e "\n=> shell changed to $shellname on nvim successfully!"
|
||||||
echo
|
echo -e "\n=> neovim will open with some errors , just press enter" && sleep 1
|
||||||
echo "neovim will open with some errors , just press enter" && sleep 1
|
|
||||||
|
|
||||||
# install all plugins + compile them
|
# install all plugins + compile them
|
||||||
nvim +PackerSync
|
nvim +PackerSync
|
||||||
|
Loading…
Reference in New Issue
Block a user