mirror of https://github.com/folke/lazy.nvim.git
feat(cache): allow to disable the cache
This commit is contained in:
parent
609445a051
commit
856ab9e476
|
@ -113,8 +113,9 @@ M.defaults = {
|
||||||
notify = true, -- get a notification when changes are found
|
notify = true, -- get a notification when changes are found
|
||||||
},
|
},
|
||||||
performance = {
|
performance = {
|
||||||
---@type LazyCacheConfig
|
cache = {
|
||||||
cache = nil,
|
enabled = true,
|
||||||
|
},
|
||||||
reset_packpath = true, -- reset the package path to improve startup time
|
reset_packpath = true, -- reset the package path to improve startup time
|
||||||
rtp = {
|
rtp = {
|
||||||
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
|
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
|
||||||
|
|
|
@ -34,7 +34,9 @@ function M.setup(spec, opts)
|
||||||
local start = vim.loop.hrtime()
|
local start = vim.loop.hrtime()
|
||||||
|
|
||||||
-- load module cache before anything else
|
-- load module cache before anything else
|
||||||
require("lazy.core.cache").enable()
|
if not (opts and opts.performance and opts.performance.cache and opts.performance.cache.enabled == false) then
|
||||||
|
require("lazy.core.cache").enable()
|
||||||
|
end
|
||||||
|
|
||||||
require("lazy.stats").track("LazyStart")
|
require("lazy.stats").track("LazyStart")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue