Skip to main content

Overview

Inlay hints show small labels inside your code without changing the file. They can show parameter names for positional arguments, inferred types for untyped locals, and index keys in large tables.

Types of hints

Parameter name hints

When calling a function, GLuaLS can show the parameter names next to each argument:
Enable with hint.paramHint:
Use the settings menu instead of editing the JSON file directly. This helps you avoid config mistakes.
.gluarc.json

Local type hints

Show the inferred type of untyped local declarations:
Enable with hint.localHint:
Use the settings menu instead of editing the JSON file directly. This helps you avoid config mistakes.
.gluarc.json

Array/table index hints

Show implicit numeric keys in table literals:
Enable with hint.indexHint:
Use the settings menu instead of editing the JSON file directly. This helps you avoid config mistakes.
.gluarc.json

Override hints

Show when a method overrides a parent class method:
Enable with hint.overrideHint.

Closing end hints

Show which do...end or function...end block an end closes. This helps in nested code:
Enable with hint.closingEndHint.

Global configuration

You can toggle each hint type. This example shows the available settings:
Use the settings menu instead of editing the JSON file directly. This helps you avoid config mistakes.
.gluarc.json

Additional hint settings

Strict mode array index hints

strict.arrayIndex controls whether implicit numeric table keys are treated as strict index hints and diagnostics.
.gluarc.json

Inline values

During a debug session, GLuaLS can show current local variable values beside the code, like an inline variable inspector:
Enable with:
Use the settings menu instead of editing the JSON file directly. This helps you avoid config mistakes.
.gluarc.json

VS Code integration

When enabled, inlay hints appear inline in the editor. Choose which hint types to display in the settings panel. See Hints & Hover settings for the full reference.