Skip to content

About

LuaCATS type annotations for ddnet++ plugins

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

lls-addon-ddnetpp

This is a addon for the luals language server. It includes meta files with LuaCATS type annotations for the DDNet++ lua plugin api

typehint preview

Quickstart

If you want to write a DDNet++ lua plugin and have proper type hints and autocompletion this is what you need. You need lua, luarocks and an editor with language server support that has luals installed.

mkdir myplugin
cd myplugin
luarocks init
luarocks install lls-addon-ddnetpp

Thats it. You should now have type completions.

It is also recommended to enable table shape checking in your .luarc.json file to let the lsp validate if you return the correct tables from callbacks.

{
  "type.checkTableShape": true,
}

About

LuaCATS type annotations for ddnet++ plugins

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages