mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Factor out common config setup functions in demo package
This commit is contained in:
19
pkg/integration/tests/demo/shared.go
Normal file
19
pkg/integration/tests/demo/shared.go
Normal file
@ -0,0 +1,19 @@
|
||||
package demo
|
||||
|
||||
import "github.com/jesseduffield/lazygit/pkg/config"
|
||||
|
||||
// Gives us nicer colours when we generate a git repo history with `shell.CreateRepoHistory()`
|
||||
func setGeneratedAuthorColours(config *config.AppConfig) {
|
||||
config.UserConfig.Gui.AuthorColors = map[string]string{
|
||||
"Fredrica Greenhill": "#fb5aa3",
|
||||
"Oscar Reuenthal": "#86c82f",
|
||||
"Paul Oberstein": "#ffd500",
|
||||
"Siegfried Kircheis": "#fe7e11",
|
||||
"Yang Wen-li": "#8e3ccb",
|
||||
}
|
||||
}
|
||||
|
||||
func setDefaultDemoConfig(config *config.AppConfig) {
|
||||
// demos look much nicers with icons shown
|
||||
config.UserConfig.Gui.NerdFontsVersion = "3"
|
||||
}
|
Reference in New Issue
Block a user