Skip to main content
GLua Language Server uses the same annotation dialect as the Lua Language Server. If you already annotate Lua projects with ---@param, ---@class, and similar tags, those annotations work here without changes. This page lists every supported tag and the type syntax you can use with it.

Annotation tags

Type syntax

You can compose types with unions, optionals, arrays, and generic tables.

Full example

When you write an explicit ---@param or ---@type, it always wins over automatic inference. Use this to correct the server when your code shape is too dynamic for it to follow.