mirror of https://github.com/folke/lazy.nvim.git
fix(pkg): make sure state dir exists
This commit is contained in:
parent
5a311d04f6
commit
70f54078e0
|
@ -48,6 +48,7 @@ function M.update()
|
|||
end
|
||||
end
|
||||
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)
|
||||
M.dirty = false
|
||||
M.cache = nil
|
||||
|
|
Loading…
Reference in New Issue