mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(ui): added update checker
This commit is contained in:
parent
71e4b92fd6
commit
65cd28e613
5 changed files with 64 additions and 1 deletions
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ local M = {}
|
|||
---@field dirty? boolean
|
||||
---@field updated? {from:string, to:string}
|
||||
---@field is_local boolean
|
||||
---@field has_updates? boolean
|
||||
---@field cloned? boolean
|
||||
---@field dep? boolean True if this plugin is only in the spec as a dependency
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue