File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,14 @@ opts = {
258258
259259 for method , keymaps in pairs (moves ) do
260260 for key , query in pairs (keymaps ) do
261- local desc = query :gsub (" @" , " " ):gsub (" %..*" , " " )
262- desc = desc :sub (1 , 1 ):upper () .. desc :sub (2 )
261+ local queries = type (query ) == " table" and query or { query }
262+ local parts = {}
263+ for _ , q in ipairs (queries ) do
264+ local part = q :gsub (" @" , " " ):gsub (" %..*" , " " )
265+ part = part :sub (1 , 1 ):upper () .. part :sub (2 )
266+ table.insert (parts , part )
267+ end
268+ local desc = table.concat (parts , " or " )
263269 desc = (key :sub (1 , 1 ) == " [" and " Prev " or " Next " ) .. desc
264270 desc = desc .. (key :sub (2 , 2 ) == key :sub (2 , 2 ):upper () and " End" or " Start" )
265271 if not (vim .wo .diff and key :find (" [cC]" )) then
You can’t perform that action at this time.
0 commit comments