Skip to content
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

Configurable taplo.toml location #196

Closed
tisonkun opened this issue Dec 5, 2021 · 2 comments · Fixed by #211
Closed

Configurable taplo.toml location #196

tisonkun opened this issue Dec 5, 2021 · 2 comments · Fixed by #211

Comments

@tisonkun
Copy link

tisonkun commented Dec 5, 2021

Users hosting repo on GitHub can ask for placing the effective taplo.toml file under .github/ folder. Other users can also ask for avoiding placing the file under the root patch.

Besides trying to look up the config file at some pre-defined location, it's reasonable to make the location configurable.

What do you think? @tamasfe

@tamasfe
Copy link
Owner

tamasfe commented Dec 18, 2021

Sorry, I missed this one. Yes, definitely would be a welcome addition in the LSP configuration!

@tisonkun
Copy link
Author

tisonkun commented Mar 27, 2022

Thanks for resolving this issue @tamasfe!

It seems that argument isn't documented in the website. For those who want to set a different config file, use:

taplo format -c <CONFIG>
# -c, --config <CONFIG>            Path to the Taplo configuration file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants