feat(ui): added update checker

This commit is contained in:
Folke Lemaitre 2022-12-05 20:49:23 +01:00
parent 71e4b92fd6
commit 65cd28e613
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 64 additions and 1 deletions

View file

@ -50,6 +50,13 @@ M.defaults = {
},
throttle = 20, -- how frequently should the ui process render events
},
checker = {
-- lazy can automatically check for updates
enabled = false,
concurrency = 10, -- set to 1 to very slowly check for updates
notify = true, -- get a notification if new updates are found
frequency = 3600, -- every hour
},
performance = {
---@type LazyCacheConfig
cache = nil,
@ -102,6 +109,9 @@ function M.setup(spec, opts)
require("lazy.core.cache").autosave()
require("lazy.view").setup()
require("lazy.manage.reloader").enable()
if M.options.checker.enabled then
require("lazy.manage.checker").start()
end
end,
})