1# Lua
2
3Lua support is available through the [Lua extension](https://github.com/zed-industries/zed/tree/main/extensions/lua).
4
5- Tree Sitter: [tree-sitter-grammars/tree-sitter-lua](https://github.com/tree-sitter-grammars/tree-sitter-lua)
6- Language server: [LuaLS/lua-language-server](https://github.com/LuaLS/lua-language-server)
7
8## luarc.json
9
10To configure LuaLS you can create a `.luarc.json` file in the root of your workspace.
11
12See [LuaLS Settings Documentation](https://luals.github.io/wiki/settings/) for all available configuration options.
13
14```json
15{
16 "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
17 "runtime.version": "Lua 5.4",
18 "diagnostics.severity": {
19 // "duplicate-set-field": "Hint"
20 },
21 "format.defaultConfig": {
22 "indent_style": "space",
23 "indent_size": "4"
24 },
25 // Location(s) of any LuaCATS / EmmyLua annotation stubs
26 "workspace.library": [
27 // "path/to/library/directory"
28 ]
29}
30```