Skip to content

Commit

Permalink
docs(clue): mention that desc field can be function
Browse files Browse the repository at this point in the history
Related to #1526
  • Loading branch information
echasnovski committed Jan 27, 2025
1 parent 7a75a97 commit 1f782e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/mini-clue.txt
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,8 @@ A clue table is a table with the following fields:
- <keys> `(string)` - key combination for which clue will be shown.
"Human-readable" key names as in |key-notation| (like "<Leader>", "<Space>",
"<Tab>", etc.) are allowed.
- <desc> `(string|nil)` - optional key combination description which will
be shown in clue window.
- <desc> `(string|function|nil)` - optional key combination description which is
shown in clue window. If function, should return string description.
- <postkeys> `(string|nil)` - optional postkeys which will be executed
automatically after `keys`. Allows creation of submodes
(see |MiniClue-examples-submodes|).
Expand Down
4 changes: 2 additions & 2 deletions lua/mini/clue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ end
--- - <keys> `(string)` - key combination for which clue will be shown.
--- "Human-readable" key names as in |key-notation| (like "<Leader>", "<Space>",
--- "<Tab>", etc.) are allowed.
--- - <desc> `(string|nil)` - optional key combination description which will
--- be shown in clue window.
--- - <desc> `(string|function|nil)` - optional key combination description which is
--- shown in clue window. If function, should return string description.
--- - <postkeys> `(string|nil)` - optional postkeys which will be executed
--- automatically after `keys`. Allows creation of submodes
--- (see |MiniClue-examples-submodes|).
Expand Down

0 comments on commit 1f782e3

Please sign in to comment.