21 lines
521 B
Plaintext
21 lines
521 B
Plaintext
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
|
|
|
|
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;",
|
|
loaders = { "teal" },
|
|
},
|
|
}
|