diff options
| author | kylo252 <[email protected]> | 2022-04-20 11:44:36 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-20 11:44:36 +0200 | 
| commit | 3d841425aed288091068bbb8d15376c9908c6cec (patch) | |
| tree | d2da49957941797a46caea4ffda59f644a8d0e8d /lua/lvim/bootstrap.lua | |
| parent | 1ae89bee93a01f2c64884ae8bed3f28681c2abff (diff) | |
feat: lock nvim <0.7 to a specific tag (#2491)
Diffstat (limited to 'lua/lvim/bootstrap.lua')
| -rw-r--r-- | lua/lvim/bootstrap.lua | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua index c324055a..83536335 100644 --- a/lua/lvim/bootstrap.lua +++ b/lua/lvim/bootstrap.lua @@ -1,7 +1,7 @@  local M = {} -if vim.fn.has "nvim-0.6.1" ~= 1 then -  vim.notify("Please upgrade your Neovim base installation. Lunarvim requires v0.6.1+", vim.log.levels.WARN) +if vim.fn.has "nvim-0.7" ~= 1 then +  vim.notify("Please upgrade your Neovim base installation. Lunarvim requires v0.7+", vim.log.levels.WARN)    vim.wait(5000, function()      return false    end) @@ -115,8 +115,10 @@ end  ---pulls the latest changes from github and, resets the startup cache  function M:update()    require_clean("lvim.utils.hooks").run_pre_update() -  require_clean("lvim.utils.git").update_base_lvim() -  require_clean("lvim.utils.hooks").run_post_update() +  local ret = require_clean("lvim.utils.git").update_base_lvim() +  if ret then +    require_clean("lvim.utils.hooks").run_post_update() +  end  end  return M | 
