mirror of https://github.com/folke/lazy.nvim.git
test(lockfile): create config dir if it does not exist
This commit is contained in:
parent
4cf176bdab
commit
dc150df456
|
@ -8,6 +8,7 @@ M.lock = {}
|
||||||
M._loaded = false
|
M._loaded = false
|
||||||
|
|
||||||
function M.update()
|
function M.update()
|
||||||
|
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.lockfile, ":p:h"), "p")
|
||||||
local f = assert(io.open(Config.options.lockfile, "w"))
|
local f = assert(io.open(Config.options.lockfile, "w"))
|
||||||
f:write("{\n")
|
f:write("{\n")
|
||||||
M.lock = {}
|
M.lock = {}
|
||||||
|
|
Loading…
Reference in New Issue