convert everything to metatables and added rules
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
local _V = {}
|
||||
local _M = {}
|
||||
|
||||
_V = {
|
||||
terminal = "alacritty",
|
||||
editor = os.getenv("EDITOR") or "nvim",
|
||||
modkey = "Mod4",
|
||||
wallpaper = os.getenv("HOME") .. "/.config/awesome/theme/background.jpg",
|
||||
}
|
||||
_V.editor_cmd = _V.terminal .. " -e " .. _V.editor
|
||||
function _M.get()
|
||||
local _V = {}
|
||||
|
||||
return _V
|
||||
_V = {
|
||||
terminal = "alacritty",
|
||||
editor = os.getenv("EDITOR") or "nvim",
|
||||
modkey = "Mod4",
|
||||
wallpaper = os.getenv("HOME") .. "/.config/awesome/theme/background.jpg",
|
||||
}
|
||||
_V.editor_cmd = _V.terminal .. " -e " .. _V.editor
|
||||
|
||||
return _V
|
||||
end
|
||||
|
||||
return setmetatable({}, {
|
||||
__call = function(_, ...)
|
||||
return _M.get(...)
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user