-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatting files in hidden directories #562
Comments
It's definitely possible, it just hasn't been an issue yet. I think the best way is to just make it a command line flag such as Line 265 in f5243a1
|
wincent
added a commit
to wincent/StyLua
that referenced
this issue
Sep 2, 2022
Something like: might do the trick. Tested locally and works for me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
But 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).The text was updated successfully, but these errors were encountered: