Wansmer / langmapper.nvim

A plugin that makes Neovim more friendly to non-English input methods 🤝
MIT License
128 stars 7 forks source link

Switching language and has delay in insert mode #28

Open kukushkawi opened 3 months ago

kukushkawi commented 3 months ago

First of all, thanks for your plugin. I've switched to windows from linux and it's tough to make something semi-working for notes in cyrillic language on windows. I have problem with using it with which-key in insert mode. When i type everything is ok, buy if i press space there is noticeable delay and sometimes when i press "y" after the space it writes "y" and other characters in english keymap. i guess it has to do with nvim-cmp, but i don't know to fix it. The other problem is with escaping from insert mode. When i press escape with non-cyrillic keymap on it escapes to normal mode but if i press just after it any movement key - it moves to the end or beginning of line (if i press h or l) and moves line up or down (if i press j or k). It also stays the same if i just pressing escape in normal mode. But only if i'm using non-cyrillic keymap, with english i can't reproduce it. Let me know if you need more info, thanks in advance.

kukushkawi commented 3 months ago

Just added require('langmapper').hack_get_keymap() to my config and issue with delay/'i' changes in insert mode are dissapeared, but issue with escape in normal mode is still there, so this is still a problem.

kukushkawi commented 3 months ago

And also now which-key only works with keybinds with one sign and doesn't with sequential, only with one key.

Wansmer commented 3 months ago

Hi. Try to reproduce the bug with <Esc> using minimal config and describe the sequence of actions so that I can reproduce it too. Also, there are very common problems with which-key and cmp - see previous issues, maybe there is a solution there.