From d0d61fe69add941dfb12122953d6cd6831818510 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Sun, 28 May 2023 17:29:23 +0300 Subject: [PATCH] timeout for nvim sync --- .../nvim/run_onchange_after_nvim_plugins_sync.fish.tmpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/private_dot_config/nvim/run_onchange_after_nvim_plugins_sync.fish.tmpl b/private_dot_config/nvim/run_onchange_after_nvim_plugins_sync.fish.tmpl index cec032d..68432b1 100644 --- a/private_dot_config/nvim/run_onchange_after_nvim_plugins_sync.fish.tmpl +++ b/private_dot_config/nvim/run_onchange_after_nvim_plugins_sync.fish.tmpl @@ -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