Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Improve StyLua Lua formatter suggested settings (#24144)

Peter Tripp2e7bb11b7d5d
diff --git a/docs/src/languages/lua.md b/docs/src/languages/lua.md
index dbd2b8c665d..864757192e4 100644
--- a/docs/src/languages/lua.md
+++ b/docs/src/languages/lua.md
@@ -59,7 +59,13 @@ Alternative you can use [StyLua](https://github.com/JohnnyMorganz/StyLua):
"formatter": {
"external": {
"command": "stylua",
- "arguments": ["--syntax=Lua54", "-"]
+ "arguments": [
+ "--syntax=Lua54",
+ "--respect-ignores",
+ "--stdin-filepath",
+ "{buffer_path}",
+ "-"
+ ]
}
}
}