summaryrefslogtreecommitdiff
path: root/lua/lvim/bootstrap.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-10-30 14:43:29 +0200
committerkylo252 <[email protected]>2021-10-30 14:44:24 +0200
commit17648e5a07f8c4fe851b09f3037db58c73fe292f (patch)
tree6ef8f701b823e5d4f61945142eb7ceec2581ead4 /lua/lvim/bootstrap.lua
parent1f2167df0ea3f837c9c78a0137a888ca05e5e83a (diff)
parentc4a85b32752e1ca41c6d9a2613b9d2e75dbf463d (diff)
Merge branch 'rolling'
Diffstat (limited to 'lua/lvim/bootstrap.lua')
-rw-r--r--lua/lvim/bootstrap.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua
index fbb362ce..e17c79db 100644
--- a/lua/lvim/bootstrap.lua
+++ b/lua/lvim/bootstrap.lua
@@ -1,8 +1,5 @@
local M = {}
-package.loaded["lvim.utils.hooks"] = nil
-local _, hooks = pcall(require, "lvim.utils.hooks")
-
local uv = vim.loop
local path_sep = uv.os_uname().version:match "Windows" and "\\" or "/"
@@ -101,6 +98,8 @@ end
---Update LunarVim
---pulls the latest changes from github and, resets the startup cache
function M:update()
+ package.loaded["lvim.utils.hooks"] = nil
+ local _, hooks = pcall(require, "lvim.utils.hooks")
hooks.run_pre_update()
M:update_repo()
hooks.run_post_update()