mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-20 13:26:45 +00:00
fix(pkg): make sure state dir exists
This commit is contained in:
parent
fd8229d6e3
commit
3515cb518f
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ function M.update()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local code = "return " .. Util.dump({ version = M.VERSION, specs = M.cache })
|
local code = "return " .. Util.dump({ version = M.VERSION, specs = M.cache })
|
||||||
|
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.pkg.cache, ":h"), "p")
|
||||||
Util.write_file(Config.options.pkg.cache, code)
|
Util.write_file(Config.options.pkg.cache, code)
|
||||||
M.dirty = false
|
M.dirty = false
|
||||||
M.cache = nil
|
M.cache = nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue