Skip to content

Commit

Permalink
doc: popup_user_mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
younger-1 committed Nov 27, 2022
1 parent e3798b8 commit 5d36f47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ WhichKey comes with the following defaults:
scroll_down = '<c-d>', -- binding to scroll down inside the popup
scroll_up = '<c-u>', -- binding to scroll up inside the popup
},
-- binding key to function inside the popup. The user-defined function accepts two parameter `(keys, mode)`,
-- in which `keys` is the keys bring up the popup, `mode` is the current vim mode.
popup_user_mappings = {},
window = {
border = "none", -- none, single, double, shadow
position = "bottom", -- bottom, top
Expand Down
3 changes: 3 additions & 0 deletions doc/which-key.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ WhichKey comes with the following defaults:
scroll_down = '<c-d>', -- binding to scroll down inside the popup
scroll_up = '<c-u>', -- binding to scroll up inside the popup
},
-- binding key to function inside the popup. The user-defined function accepts two parameter `(keys, mode)`,
-- in which `keys` is the keys bring up the popup, `mode` is the current vim mode.
popup_user_mappings = {},
window = {
border = "none", -- none, single, double, shadow
position = "bottom", -- bottom, top
Expand Down
2 changes: 2 additions & 0 deletions lua/which-key/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ local defaults = {
scroll_down = "<c-d>", -- binding to scroll down inside the popup
scroll_up = "<c-u>", -- binding to scroll up inside the popup
},
-- binding key to function inside the popup. The user-defined function accepts two parameter `(keys, mode)`,
-- in which `keys` is the keys bring up the popup, `mode` is the current vim mode.
popup_user_mappings = {},
window = {
border = "none", -- none, single, double, shadow
Expand Down

0 comments on commit 5d36f47

Please sign in to comment.