nvim-lua / plenary.nvim

plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.
MIT License
2.69k stars 284 forks source link

feat(luassert): Add luassert annotation types #552

Closed kristijanhusak closed 5 months ago

kristijanhusak commented 8 months ago

Add annotation types for luassert since most of its methods/props are dynamic.

Types are generated with the script by reading the luassert namespace where it holds the assertions and modifiers.

Most of the things are dynamic except figuring out what number of arguments does an assertion have. Most of them have 1, and other ones are added as an exception.

Conni2461 commented 5 months ago

nice, thanks :)