1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-23 16:06:48 +00:00
dotfiles/.config/nvim/lua/util/files.lua

11 lines
144 B
Lua
Raw Normal View History

2024-06-14 16:17:02 +00:00
local M = {}
M.read = function(file)
local fd = assert(io.open(file, "r"))
local data = fd:read("*a")
fd:close()
return data
end
return M