-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.json
24 lines (24 loc) · 1.04 KB
/
settings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
// Point to the root PlaydateSDK so that auto-complete recommends paths prefixed with "CoreLibs/"
"Lua.workspace.library": ["$PLAYDATE_SDK_PATH"],
// Prevent the language server from indexing the Examples directories in the PlaydateSDK folder
"Lua.workspace.ignoreDir": ["Examples"],
"Lua.workspace.preloadFileSize": 1000,
"Lua.runtime.special": {
// Configure the language server to treat an import statement as a require statement
"import": "require"
},
// The language server uses "." separators for require auto-completion, but the import statement only supports slashes
"Lua.completion.requireSeparator": "/",
"Lua.runtime.version": "Lua 5.4",
// The language server can sort of parse these, but the formatter cannot
// "Lua.runtime.nonstandardSymbol": ["+=", "-=", "*=", "/="],
"Lua.diagnostics.disable": [
"lowercase-global",
"undefined-global",
"undefined-field",
"unknown-symbol"
],
// Prevent the language server from linting the PlaydateSDK files
"Lua.diagnostics.libraryFiles": "Disable"
}