install.sh: Run PackerSync from script after install too

as the corresponding code for that was removed from init.lua
This commit is contained in:
Akianonymus 2021-07-19 07:08:28 +05:30
parent 6b507c3368
commit 1e658562f0
1 changed files with 1 additions and 5 deletions

View File

@ -153,11 +153,7 @@ main() {
if _NVIM="$(command -v nvim)"; then if _NVIM="$(command -v nvim)"; then
if _check_nvim_version; then if _check_nvim_version; then
printf "\n%s\n" "=> Neovim will now open." && sleep 1 printf "\n%s\n" "=> Neovim will now open." && sleep 1
if [ "${_UPDATE}" = "false" ]; then
"${_NVIM}" +":lua require 'pluginList' vim.cmd('PackerSync')" "${_NVIM}" +":lua require 'pluginList' vim.cmd('PackerSync')"
else
"${_NVIM}"
fi
else else
printf "Error: Neovim is installed, but version is lower than 0.5.x, install Neovim >= 5.x and then run nvim & do :PackerSync\n." printf "Error: Neovim is installed, but version is lower than 0.5.x, install Neovim >= 5.x and then run nvim & do :PackerSync\n."
fi fi