Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ Available top-level config domains:
- `windows`
- `filetree`
- `log`
- `merge`
- `keymaps`
- `pane_navigation`
- `hunk_navigation`
Expand All @@ -261,6 +262,7 @@ Notes:
- `theme.preset` selects a built-in palette, and `theme.palette` can override individual colors on top of that preset.
- `welcome.animate` controls whether the welcome screen animation runs.
- `watch.enabled` keeps `.git` metadata watchers on. `watch.poll` controls background worktree polling for new untracked/external file changes.
- `merge.keymaps.show_help` controls the merge actions help key. It defaults to `?`.
- Discard actions always prompt for confirmation before changing the repo state.

</details>
Expand Down
3 changes: 3 additions & 0 deletions lua/glance/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ local ALLOWED_MERGE = {
}

local ALLOWED_MERGE_KEYMAPS = {
show_help = true,
accept_ours = true,
accept_theirs = true,
accept_both_ours_then_theirs = true,
Expand All @@ -107,6 +108,7 @@ local ALLOWED_MERGE_KEYMAPS = {
}

local MERGE_KEYMAP_ORDER = {
'show_help',
'accept_ours',
'accept_theirs',
'accept_both_ours_then_theirs',
Expand Down Expand Up @@ -260,6 +262,7 @@ local BASE_DEFAULTS = {
},
merge = {
keymaps = {
show_help = '?',
accept_ours = '<leader>o',
accept_theirs = '<leader>t',
accept_both_ours_then_theirs = '<leader>O',
Expand Down
Loading
Loading