mirror of https://github.com/folke/lazy.nvim.git
fix: first line of file
This commit is contained in:
parent
7f4743ac30
commit
c749404423
|
@ -134,8 +134,9 @@ end
|
||||||
function M.head(file)
|
function M.head(file)
|
||||||
local f = io.open(file)
|
local f = io.open(file)
|
||||||
if f then
|
if f then
|
||||||
|
local ret = f:read()
|
||||||
f:close()
|
f:close()
|
||||||
return f:read()
|
return ret
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue