File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ lazycommit commit -a
5151
5252## Configuration
5353
54- Create a ` .lazycommit.yaml ` file in your home directory or project root:
54+ Create a ` .lazycommit.yaml ` file in one of these locations (checked in order):
55+ - Current directory (` ./.lazycommit.yaml ` )
56+ - Home directory (` ~/.lazycommit.yaml ` )
57+ - Config directory (` ~/.config/.lazycommit.yaml ` )
5558
5659``` yaml
5760active_provider : openai
Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ func InitConfig() {
3434 fmt .Println ("Error getting home directory:" , err )
3535 os .Exit (1 )
3636 }
37- viper .AddConfigPath (home )
38- viper .AddConfigPath ("." ) // Also look in the current directory
37+ viper .AddConfigPath ("." ) // Look in the current directory first
38+ viper .AddConfigPath (home ) // Then home directory
39+ viper .AddConfigPath (getConfigDir ()) // Finally ~/.config directory
3940
4041 // Set defaults based on available credentials
4142 if token , err := LoadGitHubToken (); err == nil && token != "" {
You can’t perform that action at this time.
0 commit comments