@@ -94,17 +94,12 @@ M.defaults = {
9494 win_opts = {}
9595 },
9696 },
97- help_panel = {
98- win_config = {
99- win_opts = {}
100- },
101- },
10297 default_args = {
10398 DiffviewOpen = {},
10499 DiffviewFileHistory = {},
105100 },
106101 hooks = {},
107- -- Tabularize formatting pattern: `\vactions \.\w+(\(.{-}\))?,?|\{\ desc\ \=`
102+ -- Tabularize formatting pattern: `\v(\"[^"]{-}\",\ze(\s*)actions)|actions \.\w+(\(.{-}\))?,?|\{\ desc\ \=`
108103 keymaps = {
109104 disable_defaults = false , -- Disable the default keymaps
110105 view = {
@@ -125,20 +120,27 @@ M.defaults = {
125120 { " n" , " <leader>cb" , actions .conflict_choose (" base" ), { desc = " Choose the BASE version of a conflict" } },
126121 { " n" , " <leader>ca" , actions .conflict_choose (" all" ), { desc = " Choose all the versions of a conflict" } },
127122 { " n" , " dx" , actions .conflict_choose (" none" ), { desc = " Delete the conflict region" } },
128- { " n" , " g?" , actions .help (" view" ), { desc = " Open the help panel" } },
129123 },
130- diff1 = { --[[ Mappings in single window diff layouts ]] },
131- diff2 = { --[[ Mappings in 2-way diff layouts ]] },
124+ diff1 = {
125+ -- Mappings in single window diff layouts
126+ { " n" , " g?" , actions .help ({ " view" , " diff1" }), { desc = " Open the help panel" } },
127+ },
128+ diff2 = {
129+ -- Mappings in 2-way diff layouts
130+ { " n" , " g?" , actions .help ({ " view" , " diff2" }), { desc = " Open the help panel" } },
131+ },
132132 diff3 = {
133133 -- Mappings in 3-way diff layouts
134- { { " n" , " x" }, " 2do" , actions .diffget (" ours" ), { desc = " Obtain the diff hunk from the OURS version of the file" } },
135- { { " n" , " x" }, " 3do" , actions .diffget (" theirs" ), { desc = " Obtain the diff hunk from the THEIRS version of the file" } },
134+ { { " n" , " x" }, " 2do" , actions .diffget (" ours" ), { desc = " Obtain the diff hunk from the OURS version of the file" } },
135+ { { " n" , " x" }, " 3do" , actions .diffget (" theirs" ), { desc = " Obtain the diff hunk from the THEIRS version of the file" } },
136+ { " n" , " g?" , actions .help ({ " view" , " diff3" }), { desc = " Open the help panel" } },
136137 },
137138 diff4 = {
138139 -- Mappings in 4-way diff layouts
139- { { " n" , " x" }, " 1do" , actions .diffget (" base" ), { desc = " Obtain the diff hunk from the BASE version of the file" } },
140- { { " n" , " x" }, " 2do" , actions .diffget (" ours" ), { desc = " Obtain the diff hunk from the OURS version of the file" } },
141- { { " n" , " x" }, " 3do" , actions .diffget (" theirs" ), { desc = " Obtain the diff hunk from the THEIRS version of the file" } },
140+ { { " n" , " x" }, " 1do" , actions .diffget (" base" ), { desc = " Obtain the diff hunk from the BASE version of the file" } },
141+ { { " n" , " x" }, " 2do" , actions .diffget (" ours" ), { desc = " Obtain the diff hunk from the OURS version of the file" } },
142+ { { " n" , " x" }, " 3do" , actions .diffget (" theirs" ), { desc = " Obtain the diff hunk from the THEIRS version of the file" } },
143+ { " n" , " g?" , actions .help ({ " view" , " diff4" }), { desc = " Open the help panel" } },
142144 },
143145 file_panel = {
144146 { " n" , " j" , actions .next_entry , { desc = " Bring the cursor to the next file entry" } },
0 commit comments