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:hint.paramHint:
.gluarc.json
Local type hints
Show the inferred type of untypedlocal declarations:
hint.localHint:
.gluarc.json
Array/table index hints
Show implicit numeric keys in table literals:hint.indexHint:
.gluarc.json
Override hints
Show when a method overrides a parent class method:hint.overrideHint.
Closing end hints
Show whichdo...end or function...end block an end closes. This helps in nested code:
hint.closingEndHint.
Global configuration
You can toggle each hint type. This example shows the available settings:.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:.gluarc.json