Skip to content
Cataclysm: Bright Nights
GitHubDiscord

Lua Style Guide

As Lua ecosystem is a new addition to the project, we only have formatting guidelines.

Formatting

We format Lua files with dprint-plugin-stylua with default configuration.

To format lua files, run:

deno task dprint fmt

Formatting Lua files in VSCode

add following lines on .vscode/settings.json:

{
  "[lua]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "dprint.dprint"
  }
}

now saving your lua files will also format them.