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

Display which-key on leader key only #30

Closed
windwp opened this issue Apr 30, 2021 · 3 comments
Closed

Display which-key on leader key only #30

windwp opened this issue Apr 30, 2021 · 3 comments

Comments

@windwp
Copy link

windwp commented Apr 30, 2021

Thank for your plugin

Hi i just want to display which-key on leader key. Currently it mapping all key g,d,y,... and I don't want that.
I only want to display on leader.

My setup function

        wk.setup {
            plugins = {
                marks = false, -- shows a list of your marks on ' and `
                registers = false, -- shows your registers on " in NORMAL or <C-r> in INSERT mode
                -- the presets plugin, adds help for a bunch of default keybindings in Neovim
                -- No actual key bindings are created
                presets = false
            },
        }

it only hide the description but it still display which-key on my mapping.

@folke
Copy link
Owner

folke commented Apr 30, 2021

Yep, you're correct. Was planning to make this configurable. Stay tuned!

folke added a commit that referenced this issue Apr 30, 2021
@folke
Copy link
Owner

folke commented Apr 30, 2021

You can now set triggers = {"<leader>"}, to only trigger on that key

@windwp
Copy link
Author

windwp commented Apr 30, 2021

Thank it is working

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

No branches or pull requests

2 participants