Skip to content

Commit dafe27a

Browse files
authored
fix(view): display actual scroll up/down keys in help (#821)
## Description The footer section of WhichKey window displays help for built-in keys (Esc, BS, scroll up and down). The scroll keys are configurable, however the help message always displays the hard-coded default values.
1 parent 946dddc commit dafe27a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/which-key/view.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ function M.show()
445445
keys[#keys + 1] = { key = "<bs>", desc = "back" }
446446
end
447447
if opts.height < text:height() then
448-
keys[#keys + 1] = { key = "<c-d>/<c-u>", desc = "scroll" }
448+
keys[#keys + 1] = { key = Config.keys.scroll_down .. "/" .. Config.keys.scroll_up, desc = "scroll" }
449449
end
450450
local help = Text.new()
451451
for k, key in ipairs(keys) do

0 commit comments

Comments
 (0)