We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eb6034 commit 8a0da3bCopy full SHA for 8a0da3b
lua/lazy/core/cache.lua
@@ -9,7 +9,7 @@ M.VERSION = "1"
9
---@class LazyCacheConfig
10
M.config = {
11
enabled = true,
12
- path = vim.fn.stdpath("state") .. "/lazy.state",
+ path = vim.fn.stdpath("state") .. "/lazy/cache",
13
-- Once one of the following events triggers, caching will be disabled.
14
-- To cache all modules, set this to `{}`, but that is not recommended.
15
-- The default is to disable on:
@@ -219,6 +219,7 @@ function M.eq(h1, h2)
219
end
220
221
function M.save_cache()
222
+ vim.fn.mkdir(vim.fn.fnamemodify(M.config.path, ":p:h"), "p")
223
local f = assert(uv.fs_open(M.config.path, "w", 438))
224
uv.fs_write(f, M.VERSION)
225
uv.fs_write(f, "\0")
0 commit comments