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 Meta tool.
To enable Luau type checking (including autocomplete and go-to-definition) in Studio, you must build Luau from source code as a static library. See the third-party page for instructions on compiling Luau from source.