Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

  1. Install dprint vscode extension.
  2. Add following lines on .vscode/settings.json:
{
  "[lua]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "dprint.dprint"
  }
}

now saving your lua files will also format them.