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

Show mapping only for localleader #159

Closed
ghost opened this issue Nov 12, 2020 · 1 comment
Closed

Show mapping only for localleader #159

ghost opened this issue Nov 12, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 12, 2020

Is your feature request related to a problem? Please describe.
I have set leader to <Space> and localleader to <Space>m.
I would like to show local mappings only for the buffers for which those mappings exists.
For example I have the following autocommand:

autocmd FileType markdown nnoremap <buffer> <localleader>p :MarkdownPreview<CR>

I could use the following

let g:which_key_map['m']['p'] = 'preview'

however, that would show that mapping for every buffer, even not markdown files.

Describe the solution you'd like
To be able to show mappings only for specific files

@liuchengxu
Copy link
Owner

Duplicate as #48, but I haven't worked on that for a while.

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

1 participant