Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: override trigger of register action #544

Open
1 task done
componhead opened this issue Nov 21, 2023 · 1 comment
Open
1 task done

feature: override trigger of register action #544

componhead opened this issue Nov 21, 2023 · 1 comment
Labels
enhancement New feature or request stale

Comments

@componhead
Copy link

Did you check the docs?

  • I have read all the which-key.nvim 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

@componhead componhead added the enhancement New feature or request label Nov 21, 2023
Copy link
Contributor

github-actions bot commented Jul 6, 2024

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.

@github-actions github-actions bot added the stale label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant