Overview
Theruntime, strict, doc, and references sections control how the language server interprets Lua syntax and checks types.
Runtime (runtime.*)
Default non-standard symbols
GLuaLS enables these non-standard symbols by default to match GLua syntax:Special functions
Tell GLuaLS that a custom function behaves like a built-in Lua function:.gluarc.json
"none", "require", "error", "assert", "type", "setmetatable"
Strict mode (strict.*)
Enabling stricter nil checking
.gluarc.json
Documentation format (doc.*)
Custom tag suppression
.gluarc.json
Private field naming patterns
.gluarc.json
References (references.*)
Document color (documentColor.*)
Resource paths (resource.*)
VS Code extension settings
You can also configure these settings in VS Code settings with thegluals.* prefix:
Full example
.gluarc.json