mirror of https://github.com/folke/lazy.nvim.git
fix(pkg): make sure state dir exists
This commit is contained in:
parent
fd8229d6e3
commit
3515cb518f
|
@ -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…
Reference in New Issue