Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lua has a named arguments pattern where you pass all the named arguments inside a table. This can be supported in LuaLS by declaring a class for the arguments table:
And it gives you completion, linting, and hover docs for the fields:
But the hover for the function itself only shows the opaque type:
If would be nice if, instead, we could have something like this:
This will also look nicer in the generated docs.
Of course, this should not be the default behavior. I'm thinking of two options for this syntax:
---@param
:Beta Was this translation helpful? Give feedback.
All reactions