summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorDerTeta <derteta@gmx.de>2021-09-11 19:35:17 +0200
committerJesse Duffield <jessedduffield@gmail.com>2021-12-06 22:37:28 +1100
commitf7ffbbd72a6281b73b68d939b25f98df35296427 (patch)
tree7f8fec6d838f70a72d454a1e423bbbcfcdbd2878 /pkg/config
parent0fbde0592830cf5fdaf961f481d073164a1679e8 (diff)
Add a menu entry and keybinding to `{` for decreasing the context size
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index 5f747f85c..14038c9ae 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -178,6 +178,7 @@ type KeybindingUniversalConfig struct {
ExtrasMenu string `yaml:"extrasMenu"`
ToggleWhitespaceInDiffView string `yaml:"toggleWhitespaceInDiffView"`
IncreaseContextInDiffView string `yaml:"increaseContextInDiffView"`
+ DecreaseContextInDiffView string `yaml:"decreaseContextInDiffView"`
}
type KeybindingStatusConfig struct {
@@ -440,6 +441,7 @@ func GetDefaultConfig() *UserConfig {
ExtrasMenu: "@",
ToggleWhitespaceInDiffView: "<c-w>",
IncreaseContextInDiffView: "}",
+ DecreaseContextInDiffView: "{",
},
Status: KeybindingStatusConfig{
CheckForUpdate: "u",