Skip to content

Showing symbolic mapping targets #256

Description

@albfan

Instructions: Replace the template text and remove irrelevant text (including this line)
Warning: if you don't fill this issue template and provide the reproducible steps the issue could be closed directly.

Environment (please complete the following information):

  • OS: linux

  • (Neo)Vim version: vim 9.1

  • vim-which-key version: 4843811 Tue, 3 Dec 2024 09:20:17

  • Have you reproduced with a minimal vimrc: yes

Describe the bug
on ag.vim:

https://github.com/albfan/ag.vim.git

it defines some mappings as <Leader>ag using symbolic mapping targets <Plug>(ag-group)

vim-whichkey do not show them on popup, and broke its usage (mapping is there but

There's a workaround though

To Reproduce
Steps to reproduce the behavior:

  1. Create the minimal vimrc min.vim:
set nocompatible
set runtimepath^=/path/to/vim-which-key
syntax on
filetype plugin indent on

" Here place the configuration that can cause this issue.

"this breaks ,ag execution
"nnoremap <silent> <leader> :WhichKey ','<CR>

"this work without any problem
nnoremap <silent> <leader> :WhichKeyVisual ','<CR>
  1. Start (neo)vim with command: vim -u min.vim

  2. Type '....'

  3. See error

    [which-key] , a is undefined

Expected behavior
WhichKey and WichKeyVisual to work the same
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions