These API-headers are made for lua-language-server.
Configure your .luarc.json as follow:
{
"runtime.version": "LuaJIT",
"workspace.ignoreSubmodules": false,
"workspace.library": [
"./luanti_lsp_api/core",
"./luanti_lsp_api/definitions",
],
"workspace.ignoreDir": [
"./luanti_lsp_api/core_template"
]
}For lua-language-server configuration, see LuaLS Wiki on configuring libraries.
Use lua_api_gen.exs to generate a lua_api_gen.md, use delta or diff to check what needs to be updated on the ./definitions, e.g.:
delta lua_api.md lua_api_gen.mdNote: you can omit text from the generated
lua_api_gen.mdby using--instead of---, useful for when needing to re-order some text from the original docs