Skip to content

Commit 2f576d5

Browse files
committed
Create zed settings.json to use stylua
So this was the issue, lua extension doesn't use stylua by default so the output wasn't as I wanted.
1 parent 7e9e1ea commit 2f576d5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.zed/settings.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"languages": {
3+
"Lua": {
4+
"format_on_save": "on",
5+
"formatter": {
6+
"external": {
7+
"command": "stylua",
8+
"arguments": [
9+
"--syntax=LuaJIT",
10+
"--respect-ignores",
11+
"--stdin-filepath",
12+
"{buffer_path}",
13+
"-",
14+
],
15+
},
16+
},
17+
},
18+
},
19+
}

0 commit comments

Comments
 (0)