Comment by pseudony

1 year ago

Not necessarily true. LuaLS, the most popular LSP, uses LuaCATS (Lua comments and type system) annotations. You can place annotation files (type stubs) in a directory and the LSP will pick them up.

I use this for a project of mine where I embed a Lua interpreter where I made several additional Lua modules available.