Files
oak-gpui/docs/src/languages/luau.md
T
Marshall Bowers b374c7d912 Fix casing of "macOS" (#17040)
This PR fixes a number of spots in English contexts (docs, comments,
etc.) where we were using "MacOS" instead of "macOS".

Release Notes:

- N/A
2024-08-28 19:10:49 -04:00

1.2 KiB

Luau

Luau is a fast, small, safe, gradually typed embeddable scripting language derived from Lua. Luau was developed by Roblox and available under the MIT license.

Luau language support in Zed is provided by the community-maintained Luau extension. Report issues to: https://github.com/4teapo/zed-luau/issues

Configuration

Configuration instructions are available in the Luau Zed Extension README.

Formatting

To support automatically formatting your code, you can use JohnnyMorganz/StyLua, a Lua code formatter.

Install with:

# macOS via HomeBrew
brew install stylua
# Or via Cargo
cargo install stylua --features lua52,lua53,lua54,luau

Then add the following to your Zed settings.json:

  "languages": {
		"Luau": {
			"formatter": {
				"external": {
					"command": "stylua",
					"arguments": ["-"]
				}
			}
		}
	}