timeout for nvim sync

This commit is contained in:
Anton Volnuhin 2023-05-28 17:29:23 +03:00
parent 2d05423344
commit d0d61fe69a

View File

@ -6,7 +6,9 @@ set NC '\033[0m' # No Color
echo
echo -ne "$Green""Executing neovim :Lazy sync..."
nvim --headless "+Lazy! sync" +qa
nvim --headless ":MasonUpdate" +qa
timeout 30s nvim --headless "+Lazy! sync" +qa || true
timeout 10s nvim --headless ":MasonUpdate" +qa || true
echo -e " done.$NC"
echo