+4








eb3c4b0e46
Co-authored-by: Raunak Raj <nkray21111983@gmail.com> Co-authored-by: Thorsten Ball <mrnugget@gmail.com> Co-authored-by: Bennet <bennet@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com> Co-authored-by: Joseph T Lyons <JosephTLyons@gmail.com> Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Jason <jason@zed.dev> Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Nathan Sobo <nathan@zed.dev> Co-authored-by: Jason Mancuso <7891333+jvmncs@users.noreply.github.com> Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
1.2 KiB
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
- Tree Sitter: tree-sitter-grammars/tree-sitter-luau
- Language Server: JohnnyMorganz/luau-lsp
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": ["-"]
}
}
}
}