fix(util): replace vim.fn.readfile with io.open

This commit is contained in:
2026-04-13 20:38:15 +02:00
parent 34e29dfae2
commit 8c3f7b8d77
+6 -1
View File
@@ -132,7 +132,12 @@ function Util.format(opts)
local tmp_out
if tmp then
tmp_out = table.concat(vim.fn.readfile(tmp), "\n")
local f = io.open(tmp, "r")
if not f then
return
end
tmp_out = f:read("*a")
f:close()
os.remove(tmp)
end