mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
perf: cache handler groups
This commit is contained in:
parent
05a0da532b
commit
42c2fb42c8
3 changed files with 40 additions and 40 deletions
|
@ -207,6 +207,8 @@ function M.load()
|
|||
|
||||
if M.dirty then
|
||||
Cache.dirty = true
|
||||
elseif state then
|
||||
require("lazy.core.handler")._groups = state.handlers
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -215,6 +217,7 @@ function M.save()
|
|||
local state = {
|
||||
---@type table<string, LazySpec>
|
||||
specs = {},
|
||||
handlers = require("lazy.core.handler").group(Config.plugins, true),
|
||||
config = Config.options,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue