luau.md

 1# Luau
 2
 3[Luau](https://luau.org/) is a fast, small, safe, gradually typed, embeddable scripting language derived from Lua. Luau was developed by Roblox and is available under the MIT license.
 4
 5Luau language support in Zed is provided by the community-maintained [Luau extension](https://github.com/4teapo/zed-luau).
 6Report issues to: [https://github.com/4teapo/zed-luau/issues](https://github.com/4teapo/zed-luau/issues)
 7
 8- Tree-sitter: [4teapo/tree-sitter-luau](https://github.com/4teapo/tree-sitter-luau)
 9- Language Server: [JohnnyMorganz/luau-lsp](https://github.com/JohnnyMorganz/luau-lsp)
10
11## Configuration
12
13Configuration instructions are available in the [Luau Zed Extension README](https://github.com/4teapo/zed-luau).
14
15## Formatting
16
17To support automatically formatting your code, you can use [JohnnyMorganz/StyLua](https://github.com/JohnnyMorganz/StyLua), a Lua code formatter.
18
19Install with:
20
21```sh
22# macOS via Homebrew
23brew install stylua
24# Or via Cargo
25cargo install stylua --features lua52,lua53,lua54,luau
26```
27
28Then add the following to your Zed `settings.json`:
29
30```json
31  "languages": {
32    "Luau": {
33      "formatter": {
34        "external": {
35          "command": "stylua",
36          "arguments": ["-"]
37        }
38      }
39    }
40  }
41```