folke / which-key.nvim

💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
4.99k stars 160 forks source link

feature: override trigger of register action #544

Closed componhead closed 3 weeks ago

componhead commented 8 months ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

Hi. In the following code

M.name = "registers"

M.actions = {
  { trigger = '"', mode = "n" },
  { trigger = '"', mode = "v" },
  -- { trigger = "@", mode = "n" },
  { trigger = "<c-r>", mode = "i" },
  { trigger = "<c-r>", mode = "c" },
}

I'd like to override the actions omitting { trigger = "<c-r>", mode = "i" }, used for insertion of unicode characters (precisely <C-r>u)

Describe the solution you'd like

Put trigger customization in the plugin option setup.

Describe alternatives you've considered

Remove or change { trigger = "<c-r>", mode = "i" } binding

Additional context

No response

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.