File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ Note that these integrations require the StyLua binary to already be installed a
114114
115115- Sublime : [Sublime Text Package](https://github.com/aerobounce/Sublime-Pretty-Lua)
116116- Neovim : [stylua-nvim](https://github.com/ckipp01/stylua-nvim) / [stylua.nvim](https://github.com/wesleimp/stylua.nvim)
117+ - Zed : [Zed Lua StyLua formatter settings](https://zed.dev/docs/languages/lua#stylua)
117118
118119# # Usage
119120
@@ -154,6 +155,15 @@ vendor/
154155
155156running ` stylua . ` will ignore the ` vendor/ ` directory.
156157
158+ ### Filtering when using stdin
159+
160+ If you are formatting stdin by specifying ` - ` as the filename (usually as part of an editor integration)
161+ you can optionally provide the filename via ` --stdin-filepath ` . To respect glob or ` .styluaignore ` filtering, pass ` --respect-ignores ` .
162+
163+ ``` stylua
164+ stylua --respect-ignores --stdin-filepath src/foo.lua -
165+ ```
166+
157167### ` --check ` : Checking files for formatting
158168
159169To check whether files require formatting (but not write directly to them), use the ` --check ` flag.
You can’t perform that action at this time.
0 commit comments