Better code completion with annotations?

I have few custom ‘classes’ that looks like this

function SpriteMultiPack:new(...) local instance = setmetatable( {}, self ) instance:init() return instance end function SpriteMultiPack:add(luaFile, spriteFile) (function body) end

how can I get code completion for this ‘class’? Is it possible via annotation or javadoc (don’t know lua equivalent)

I use this class like

local pack = SpriteMultiPack:new()

and I’d like to get code completion when I type " pack:a" + ctrl+space. Is it possible?