EvandroLG / pegasus.lua

:rocket: Pegasus.lua is an http server to work with web applications written in Lua language.
http://evandrolg.github.io/pegasus.lua/
MIT License
410 stars 37 forks source link

Lua language server annotations #140

Open Frityet opened 7 months ago

Frityet commented 7 months ago

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.

EvandroLG commented 6 months ago

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 :)

Frityet commented 6 months ago

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)

EvandroLG commented 6 months ago

I see, and it makes all sense, indeed!