folke / which-key.nvim

💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
4.98k stars 160 forks source link

Combination of `langmap`, 'which-key', and some keymap breaks `langmap` #169

Closed echasnovski closed 3 weeks ago

echasnovski commented 2 years ago

I understand, that this is a rather weird, niche, and hard to track issue.

Steps to reproduce (how I did it):

'init_which-key.vim' ```vim " Summary: " - Combination of set up 'which-key.nvim' (with call to `setup()`), set " `langmap` and certain keymap disables certain keys from `langmap`. " - If don't set up 'which-key', everything works as expected. " - If don't add any mappings, everything works as expected. " - Having kemaps from both listed groups disable all present `langmap` keys. " So it seems they 'act separately'. " - Keys from `langmap` don't work when applied in Normal mode. In Visual mode " everything works as expected. " - Having `nnoremap` instead of `nmap` shows similar behavior. " - Disabling in 'which-key' all plugins (with `plugins` field inside `setup` " argument) has no effect on behavior. " Add plugin 'folke/which-key.nvim' in any preferred way and set it up packadd which-key lua require('which-key').setup({}) " There are other letters that get broken, but thoroughly tested only these set langmap=рh,оj,лk,дl,щo " With any of these keymaps (but not limited to) 'о', 'л', 'д' stop working nmap Ж : " nmap м v " nmap в d " nmap а f " nmap е t " With any of these keymaps (but not limited to): 'р', 'щ' stop working " nmap ф a " nmap я z " nmap ч x " nmap с c ```

The summary of what I found with painfully lot of trial and error is inside 'init_which-key.vim'. I also tried replacing local secret to something else (i tried ß) but no luck.

I understand that this is a rather niche and rare issue, but maybe it is a consequence of something bigger.

github-actions[bot] commented 4 weeks ago

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.