summaryrefslogtreecommitdiff
path: root/lua/lvim/bootstrap.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim/bootstrap.lua')
-rw-r--r--lua/lvim/bootstrap.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua
index 55a22502..3fd000e3 100644
--- a/lua/lvim/bootstrap.lua
+++ b/lua/lvim/bootstrap.lua
@@ -112,11 +112,15 @@ end
---Update LunarVim
---pulls the latest changes from github and, resets the startup cache
function M:update()
- reload("lvim.utils.hooks").run_pre_update()
- local ret = reload("lvim.utils.git").update_base_lvim()
- if ret then
- reload("lvim.utils.hooks").run_post_update()
- end
+ require("lvim.core.log"):info "Trying to update LunarVim..."
+
+ vim.schedule(function()
+ reload("lvim.utils.hooks").run_pre_update()
+ local ret = reload("lvim.utils.git").update_base_lvim()
+ if ret then
+ reload("lvim.utils.hooks").run_post_update()
+ end
+ end)
end
return M