Skip to main content

Overview

The runtime, 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:
All available non-standard symbols:

Special functions

Tell GLuaLS that a custom function behaves like a built-in Lua function:
.gluarc.json
Available behavior values: "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 the gluals.* prefix:

Full example

.gluarc.json