LuaLS Type Annotations
Check out the official documentation for more on Github What are LuaLS Annotations? LuaLS annotations are special comments prefixed with --- that provide type information to the language server. These annotations help the server understand your code better, enabling features like: Type checking and error detection Intelligent autocompletion Better signature help Basic Syntax and Formatting --- This is a basic annotation --- --- *Bold text* and /italic text/ are supported Core Type System LuaLS recognizes all standard Lua types, such as `nil`, `any`, `boolean`, `string`, and more. ...