diff --git a/lua/lazy/core/state.lua b/lua/lazy/core/state.lua index 67661cf..36ab151 100644 --- a/lua/lazy/core/state.lua +++ b/lua/lazy/core/state.lua @@ -4,9 +4,12 @@ local Module = require("lazy.core.module") local M = {} M.functions = { "init", "config", "run" } -M.changed = true +M.dirty = true function M.save() + if not M.dirty then + return + end local Config = require("lazy.core.config") ---@class LazyState @@ -114,7 +117,7 @@ function M.load() local Loader = require("lazy.core.loader") Loader.loaders = state.loaders - M.changed = false + M.dirty = false return true end