mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-03 13:29:24 +00:00
[neovim] Move utils to a external file
This commit is contained in:
10
.config/nvim/lua/util/files.lua
Normal file
10
.config/nvim/lua/util/files.lua
Normal file
@ -0,0 +1,10 @@
|
||||
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
|
Reference in New Issue
Block a user