Skip to content

feature request: allow to pass options to keymaps #207

@pdehne-steidle

Description

@pdehne-steidle

Many thanks for your wonderful plugin! I tried many, yours is already the best for me as it is. I have only a low priority feature suggestion. Maybe its worth to add if it is easy to do.

<SPACE> is my leader key. I can bind <SPACE> in the codediff Explorer pane to next_hunk, but there is a delay before execution because it is my leader key. I would like to get rid of the delay. For this I would need to make the mapping non-recursive and not wait by setting it with nowait = true and maybe noremap = true but I can't provide these options currently when changing keymaps.

Maybe it would be possible to allow an additional style of keymap setting which just passes the arguments to vim.keymap.set().

Something like this maybe?

explorer = {
  { "n", "<SPACE>", next_hunk, { nowait = true,  noremap = true } },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions