-
-
Notifications
You must be signed in to change notification settings - Fork 412
Open
Labels
feat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)Related to Lua Language Server Annotations (LuaCats)
Description
---@class Foo
---
---desc1
---@field dostuff fun(param1: integer) # desc2
foo = {}
function foo.dostuff(param1)
print(param1)
endI have an api defined in my meta file with functions the user can define. According to the documentation https://luals.github.io/wiki/annotations/#field
The syntax is this one: ---@field [scope] <name[?]> <type> [description]
A bit sad that the description has to come after the field and can not be above it. If the type is already a long callback the entire annotation line with long description will be super long :(
Anyways even that one I could not get to work. My editor would not show the description when hovering the function. Also I could not go to its definition to at least manually browse the type annotations.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)Related to Lua Language Server Annotations (LuaCats)