mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-30 06:39:33 +02:00
feat: lock nvim <0.7 to a specific tag (#2491)
This commit is contained in:
parent
1ae89bee93
commit
3d841425ae
3 changed files with 34 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue