tldr: I've improved playdate-luacats types. git pull
your local clone to get them.
I am excited to announce that I finally figured out how to do types for object.lua
classes including extends(), super(), init() and the Object base class. You can see the changes here:
Also came up with a small workaround you may want to consider to explicitly show lua-language-server where a new class in the global namespace was created.
Instead of:
class('MySprite').extends(playdate.graphics.sprite)
Use:
MySprite = class('MySprite').extends(playdate.graphics.sprite) or MySprite
@abusch: Excited to hear it's working with NeoVim via .luarc.json
! That's fucking awesome!