-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Hi @JohnnyMorganz — Thanks for building StyLua!
Wanted to ask about formatting files in hidden directories. For example, I have a bunch of Lua in my dotfiles repo under a path like .config/nvim/, and StyLua skips right over it. This means that instead of writing:
stylua .I have to write:
stylua $PATHS_TO_HIDDEN_DIRECTORIES...So, I've put this in a script, that does this:
stylua \
aspects/dotfiles/files/.hammerspoon \
aspects/nvim/files/.configBut this isn't "future proof" in the sense that I will have to remember to update this any time I add more files in other locations, or I move these directories.
Do you think it would be possible to allow StyLua to traverse hidden directories? Or do you have an alternative? Not sure if it would be a switch, or if it should just traverse hidden directories by default (in which case users would be able to use .styluaignore to avoid entering hidden directories if they didn't want them traversed).