Mezzaluna/runtime/share/mezzaluna/init.lua
Squibid faa44dc4af
implement keymaps! they still have quite a bit of work to be any good...
but now our key do stuff when pressed (at the compositor level)
2025-10-23 23:24:49 -04:00

16 lines
513 B
Lua

local env_conf = os.getenv("XDG_CONFIG_HOME")
if not env_conf then
env_conf = os.getenv("HOME")
if not env_conf then
error("Couldn't determine potential config directory is $HOME set?")
end
env_conf = mez.fs.joinpath(env_conf, ".config")
end
mez.path.config = mez.fs.joinpath(env_conf, "mez", "init.lua")
package.path = package.path..";"..mez.fs.joinpath(env_conf, "mez", "lua", "?.lua")
-- this is an example
-- mez.api.add_keymap("ctrl", "a", function()
-- print("hello from my keymap")
-- end)