data
folder in VS Code.data/.vscode/settings.json
. {
"luau-lsp.types.definitionFiles": ["scripts/lumix.d.lua"]
}
.luaurc
file in the data/scripts/
directory with the following content:
{
"languageMode": "nonstrict",
"lint": { "*": true, "FunctionUnused": false },
"lintErrors": true,
"globals": ["expect"]
}
function onInputEvent(event : InputEvent)
return event.some_prop
end
Lumix type definitions are available in the lumix.d.lua file. This file is generated by lua_type_defs.lua.
To generate lumix.d.lua, do the following:
if false then
to if true then
.Lua type definitions
window available now.Lua type definitions
window and paste it in the lumix.d.lua file.