2023-05-05 00:04:25 +02:00
|
|
|
if os.getenv "LOCAL_LUA_DEBUGGER_VSCODE" == "1" then
|
|
|
|
require("lldebugger").start()
|
|
|
|
end
|
|
|
|
|
2023-05-01 16:28:37 +02:00
|
|
|
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 {
|
2023-05-05 00:04:25 +02:00
|
|
|
_all = {
|
2023-05-01 16:28:37 +02:00
|
|
|
lpath = lua_module_paths("lua_modules/share/lua/" .. version)
|
|
|
|
.. lua_module_paths "types"
|
2023-09-04 00:27:50 +02:00
|
|
|
.. lua_module_paths "src",
|
2023-05-01 16:28:37 +02:00
|
|
|
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
|
|
|
},
|
2023-05-05 00:04:25 +02:00
|
|
|
coverage = {
|
|
|
|
coverage = true,
|
|
|
|
},
|
2022-10-30 15:11:14 +01:00
|
|
|
}
|