fix install script

This commit is contained in:
siduck76 2021-03-28 23:20:53 +05:30
parent 669ad346e9
commit c70813d96a

View File

@ -22,16 +22,21 @@ get_platform() {
echo $platform echo $platform
} }
heading "installing packer"
if [[ ! -e ~/.local/share/nvim/site/pack/packer/start/packer.nvim ]]; then
heading "Installing packer"
git clone https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
fi
heading "Linking config" heading "Linking config"
heading "old nvim config will be deleted" heading "old nvim config will be deleted so watchout :0"
# copying config # copying config
cd .. && cp -r neovim-dots ~/.config rm -rf ~/.config/nvim/ && mkdir ~/.config/nvim
mv ~/.config/neovim-dots ~/.config/nvim cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim
rm -rf ~/.config/nvim/.git
rm -rf ~/.config/nvim/install.sh
rm -rf ~/.config/nvim/README.md
#for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do #for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do
# p=${f#*/} # p=${f#*/}
@ -42,13 +47,7 @@ rm -rf ~/.config/nvim/README.md
# ln -s ${BASE}/${p} ~/.config/nvim/${p} # ln -s ${BASE}/${p} ~/.config/nvim/${p}
#done #done
if [[ ! -e ~/.local/share/nvim/site/pack/packer/start/packer.nvim ]]; then #heading "Installing plugins"
heading "Installing packer"
git clone https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
fi
heading "Installing plugins"
#nvim --headless +PackerInstall +qa #nvim --headless +PackerInstall +qa
#nvim --headless +TSUpdate +qa #nvim --headless +TSUpdate +qa
echo echo