mirror of https://github.com/folke/lazy.nvim.git
fix(manage): prevend auto conversion 'CRLF' to 'LF' in update lazy-lock.json on Windows. Fixes #1093 (#1094)
This commit is contained in:
parent
41d3b2a9db
commit
5579d72576
|
@ -9,7 +9,7 @@ M._loaded = false
|
||||||
|
|
||||||
function M.update()
|
function M.update()
|
||||||
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.lockfile, ":p:h"), "p")
|
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, "wb"))
|
||||||
f:write("{\n")
|
f:write("{\n")
|
||||||
M.lock = {}
|
M.lock = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue