mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-09 17:12:32 +00:00
fix: first line of file
This commit is contained in:
parent
7f4743ac30
commit
c749404423
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue