diff options
author | kylo252 <[email protected]> | 2022-04-20 13:27:51 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-04-20 13:27:51 +0200 |
commit | ce4f7b0fc82dcc0ec604cd7b576ae5db95ab7235 (patch) | |
tree | 0dbea71a10ac2f3c5e1e2ba21e8d132fa0199f3a /lua/lvim/utils/hooks.lua | |
parent | 2567d8612e2f31c024038e54b3dfa4825ff539d6 (diff) | |
parent | 0481ec8dddf4bd8ed81c10ae98807fec97f6f872 (diff) |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/utils/hooks.lua')
-rw-r--r-- | lua/lvim/utils/hooks.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/lvim/utils/hooks.lua b/lua/lvim/utils/hooks.lua index 932f9c3d..a6b63c96 100644 --- a/lua/lvim/utils/hooks.lua +++ b/lua/lvim/utils/hooks.lua @@ -51,6 +51,23 @@ end function M.run_post_update() Log:debug "Starting post-update hook" + + if vim.fn.has "nvim-0.7" ~= 1 then + local compat_tag = "1.1.3" + vim.notify( + "Please upgrade your Neovim base installation. Newer version of Lunarvim requires v0.7+", + vim.log.levels.WARN + ) + vim.wait(1000, function() + return false + end) + local ret = require_clean("lvim.utils.git").switch_lvim_branch(compat_tag) + if ret then + vim.notify("Reverted to the last known compatibile version: " .. compat_tag, vim.log.levels.WARN) + end + return + end + M.reset_cache() Log:debug "Syncing core plugins" |