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

which_key_ignore for operators? #70

Closed
garymh opened this issue May 14, 2021 · 4 comments
Closed

which_key_ignore for operators? #70

garymh opened this issue May 14, 2021 · 4 comments
Labels

Comments

@garymh
Copy link

garymh commented May 14, 2021

I can't seem to get which_key_ignore to work in operator mode. Is it possible to use that there? Example:

wk.register({
    ["i"] = {
      ["("] = "which_key_ignore",
      [")"] = "which_key_ignore",
    },
    ["a"] = {
      ["("] = "which_key_ignore",
      [")"] = "which_key_ignore",
    },
  }, {mode = 'o'})

Screen Shot 2021-05-13 at 10 37 26 PM

... or am I configuring this completely wrong? 😄

@folke
Copy link
Owner

folke commented May 14, 2021

I'll check later today to see how we can make this work for the presets

@garymh
Copy link
Author

garymh commented May 14, 2021

I'll check later today to see how we can make this work for the presets

No rush at all! Thanks for all the great work on this plugin 😃

@folke
Copy link
Owner

folke commented May 15, 2021

I made a change where you can easily make changes to the presets. Make sure you run this code before setup:

local presets = require("which-key.plugins.presets")
presets.objects["a("] = nil
presets.objects["a)"] = nil
presets.objects["i("] = nil
presets.objects["i)"] = nil

@folke folke added the done label May 15, 2021
@garymh
Copy link
Author

garymh commented May 15, 2021

@folke Perfect!! Works like a charm - thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants