nvim-neotest / nvim-nio

A library for asynchronous IO in Neovim
MIT License
288 stars 8 forks source link

docs(luacats): prevent lua-ls `redundant-return-value` warning #10

Closed mrcjkb closed 6 months ago

mrcjkb commented 7 months ago

Hey :wave:

we run lua-language-server to statically type check our code in CI. It fails on warnings when we pass in a function that returns something to nio.create.

This is because the luaCATS annotation specifies ---@param fun(...) (without a return value). Specifying function instead should prevent this.

rcarriga commented 6 months ago

Thanks for the PR!