Solargraph: Global configuration support

Created on 21 Jun 2019  路  4Comments  路  Source: castwide/solargraph

Is there any chance we could get support for a global config at ~/.config/solargraph/config.yml or something similar? Overridden by the project configuration obviously.

enhancement help wanted

Most helpful comment

This is released in v0.35.0. The default location for the global config is ~/.config/solargraph/config.yml, and it can be changed with the SOLARGRAPH_GLOBAL_CONFIG environment variable.

All 4 comments

Good idea. I'll add it to the roadmap.

I might not get to this for a while, so if anyone wants to submit a PR, just let me know and I'll assign it. I don't expect it to be too difficult, but my plate is crazy full.

This is released in v0.35.0. The default location for the global config is ~/.config/solargraph/config.yml, and it can be changed with the SOLARGRAPH_GLOBAL_CONFIG environment variable.

@castwide great, thanks.

Looks like defaults overwrite built-in defaults. What's the best way of finding out built-in defaults, is it this?

@nomasprime Yes, when you use solargraph config to generate the file, it starts with everything set to the built-in defaults.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clmay picture clmay  路  3Comments

dgutov picture dgutov  路  5Comments

siumennel picture siumennel  路  5Comments

PyvesB picture PyvesB  路  4Comments

castwide picture castwide  路  3Comments