renoise / definitions

LuaCATS definitions for the Renoise Lua API
MIT License
6 stars 4 forks source link

LuaCATS definitions for the Renoise Lua API

Renoise

This is a Renoise Tools API add-on for the LuaLS Language Server.

LuaLS provides various features for Lua in code editors, such as autocompletion, type hovers, dynamic type checking, diagnostics and more via LuaCATS annotations.

HTML API Docs

A pretty online API reference book based on this definition and general guide to scripting development in Renoise can be read here: Renoise Scripting Development Book

The scripting development book, latest API definition and example tools, can be downloaded as a "scripting starter pack" bundle file from the XRNX Repository.

Status

The API definitions is usable as is is now, but still a work in progress. Please report bugs or improvements as issues here and/or create a merge request.

Known issues

Usage

To use the definition in e.g. vscode, first install the sumneko.lua vscode extension as described here: https://luals.github.io/#vscode-install

Then clone or download a copy of this repository, and configure your workspace to use the Renoise definition files:

In your project's /.vscode/settings.json file, add:

{
    "Lua.workspace.library": ["PATH/TO/RENOISE_DEFINITION_FOLDER"],
    "Lua.runtime.plugin": "PATH/TO/RENOISE_DEFINITION_FOLDER/plugin.lua"
}

Note: The Lua.runtime.plugin setting only is needed in order to automatically annotate the custom class keyword.

Contribute

Contributions are welcome!

Please report issues here or fork the latest git repository and create a feature or bugfix branch.