Is there a way to give a name to a custom function action so it's rendered in the help panel? #1349
Answered
by
ibhagwan
waiting-for-dev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
require'fzf-lua'.setup {
git = {
bcommits = {
actions = {
["default"] = { fn = action_fugitive_commit_diff, desc = 'help string' },
},
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
waiting-for-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there! I've searched in the README, wiki and issues but I haven't seen an option for this one.
I know how to assign a custom function to an action definiton. For instance, this is how I open a commit with fugitive:
However, when I'm in the preview and I press the binding to display the help panel, the function address is used as the action name:
Is there a way to assign a name to it, like in "Open commit with fugitive".
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions