Committed config files
Share linter and formatter settings with
.glua.json and .gluafmtrc.json.Inline suppressions
Silence a specific diagnostic on a single line or block without changing global rules.
Diagnostic rules
Browse every diagnostic rule the linter can enforce or ignore.
Precedence order
Lowest to highest. The last one to set an option wins.- Built-in defaults
- VS Code editor settings (
settings.json) .editorconfig.prettierrc.glua.json(linter).gluafmtrc.json(formatter)
.editorconfig and .prettierrc are read so a project that already has them does not repeat itself. Where they disagree with .glua.json or .gluafmtrc.json, the GLua-specific file wins.The glua.activation setting
glua.activation decides when the language server attaches to .lua files. The default is to attach only in workspaces that look like Garry’s Mod.
The status bar shows the current realm —
GLua · Server, GLua · Client, GLua · Shared, or Plain Lua — while the server is attached. Click it, or use the Command Palette, to override when the auto-detection guessed wrong.