diff options
author | LostNeophyte <[email protected]> | 2022-11-04 15:45:31 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-04 15:45:31 +0100 |
commit | 060116eff03f784212c8c6cbc0a6aa0d53d44ad9 (patch) | |
tree | 98f6b56ea972b3025be5bab957f8cb02174cb1c5 /lua/lvim/bootstrap.lua | |
parent | 4841dc62c3505cbe90b17c867bde6bc4d2abbb56 (diff) |
fix(logger): set console logging to sync (#3379)
Diffstat (limited to 'lua/lvim/bootstrap.lua')
-rw-r--r-- | lua/lvim/bootstrap.lua | 14 |
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 |