awesomewm.d.tl/.busted

21 lines
521 B
Plaintext
Raw Normal View History

require("tl").loader()
local version <const> = _VERSION:match "%d+%.%d+"
local function lua_module_paths(module_base_path)
local paths = (module_base_path .. "/?.lua;")
.. (module_base_path .. "/?/init.lua;")
return paths
end
2023-04-24 00:14:32 +02:00
2022-10-30 15:11:14 +01:00
return {
default = {
lpath = lua_module_paths("lua_modules/share/lua/" .. version)
.. lua_module_paths "types"
.. lua_module_paths "./src/awesomewm.d.tl",
cpath = "lua_modules/lib/lua/" .. version .. "/?.so;",
2023-04-24 00:14:32 +02:00
loaders = { "teal" },
2022-10-30 15:11:14 +01:00
},
}