This repository contains definitions for the builtin APIs of CC: Tweaked. These definitions are in the LuaCATS format for use with any LuaLS based language pack.
The repository is structured like a LuaLS addon, with the required configuration in config.json
, and the definitions contained in the library
folder.
Installation is done by adding this repository as a submodule, then configuring the language server.
Add this repository as a git submodule using:
git submodule add https://github.com/CelDaemon/cc-definitions libraries/cc-definitions
Or clone the repository directly if the workspace is not a git repo:
git clone https://github.com/CelDaemon/cc-definitions libraries/cc-definitions
Then, properly configure the language server.
This is done by adding a .luarc.json
file to the base of the workspace,
and adding the following config to the created file: