summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-01-12 13:16:25 +0100
committerStefan Haller <stefan@haller-berlin.de>2024-01-22 08:40:03 +0100
commit36134006c52269b1a80f2b42857f008b47db7e6c (patch)
treef3b7cafa13773bd43ad79465636f1a630d357ff9 /pkg/config
parent321583952402b3e0db9fb74482d63783f186a2d6 (diff)
Add config setting to suppress showing file icons
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index e9f739a1d..0069c75b0 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -121,6 +121,8 @@ type GuiConfig struct {
// One of: '2' | '3' | empty string (default)
// If empty, do not show icons.
NerdFontsVersion string `yaml:"nerdFontsVersion" jsonschema:"enum=2,enum=3,enum="`
+ // If true (default), file icons are shown in the file views. Only relevant if NerdFontsVersion is not empty.
+ ShowFileIcons bool `yaml:"showFileIcons"`
// If true, show commit hashes alongside branch names in the branches view.
ShowBranchCommitHash bool `yaml:"showBranchCommitHash"`
// Height of the command log view
@@ -635,6 +637,7 @@ func GetDefaultConfig() *UserConfig {
ShowRandomTip: true,
ShowIcons: false,
NerdFontsVersion: "",
+ ShowFileIcons: true,
ShowBranchCommitHash: false,
CommandLogSize: 8,
SplitDiff: "auto",