Skip to content
Discussion options

You must be logged in to vote

You can make the LSP recognize these definitions by creating a meta file. like:

--xxx.d.lua
---@meta

---@class Test
local Test = {}

--- Markdown description
---@param aaa string
---@return string
function Test:example(aaa)
    return "example"
end

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tchoutri
Comment options

@CppCXY
Comment options

@tchoutri
Comment options

Answer selected by tchoutri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants