Skip to main content

Overview

lsp_optimization goes on a local and changes how GLuaLS treats it. It takes one of two codes.

Syntax

Put it directly above the local.

check_table_field

Skips the assign-type-mismatch check on the fields of a table. Use it on large configuration tables where the check is slow and not useful:

delayed_definition

For a local declared without a value. Its type comes from the first value assigned to it later, even in functions defined before that assignment: