pegasus.lua icon indicating copy to clipboard operation
pegasus.lua copied to clipboard

Lua language server annotations

Open Frityet opened this issue 1 year ago • 3 comments

LuaLanguageServer provides a system of annotations to make lua code safer and easier to read and write

Screenshot 2024-02-06 at 12 59 35

Alongside this, it also offers an easy way to make definitions for libraries, of which if there was definitions for this library it would be very useful.

Frityet avatar Feb 06 '24 21:02 Frityet

Interesting! I personally use coc-lua.

Anyway, @Frityet , I think it's not too related to the Pegasus project, right? Or, perhaps, I'm missing something here?

Btw, it's nice that they use Array.lua in their website example :)

EvandroLG avatar Feb 28 '24 18:02 EvandroLG

I think it's not too related to the Pegasus project, right?

It is, sort of, you could either do the type documentation comments inline in the source (which then gives you a powerful type checker for your codebase) or you could create an external metadata file that defines types (like a .d.ts file)

Frityet avatar Feb 28 '24 21:02 Frityet

I see, and it makes all sense, indeed!

EvandroLG avatar Mar 02 '24 19:03 EvandroLG