Closed evoludigit closed 3 years ago
Hi, thank you for your kind words!
I never used Neovim and got familiar with the floating window notion just now. It seems that it has some specific lower-level optimizations that skip triggering BufEnter
/InsertEnter
events when returning to the original window. It could be fixed with checking a filetype inside g:XkbSwitchSkipFt
, but Coc does not provide specific filetypes. However, it looks that this floating windows do have a special parameter that can be hooked: they have window variable float
. So I made a new list g:XkbSwitchSkipWinVar
with default value ['float']
to let the xkbswitch plugin skip setting layouts on entering such windows.
Please try this fix (you only need to pull the latest version), however I am not very sure that it will work.
Hello,
thank you so much ! It works great, you’ve made my day :+1:
Hello,
thank you for your amazing plugin. It has solved elegantly a problem that I had since I have started to learn to use Vim with qwerty keyboard, but typing with french bépo layout.
I have one question : in insert mode, layout switches from my locale (fr(bepo) in my case) to us layout, when a documentation float window is triggered by Neoclide Coc Intellisense-like plugin.
cfv https://github.com/neoclide/coc.nvim, and screen captures on https://www.reddit.com/r/neovim/comments/b1pctc/float_window_support_with_cocnvim/ to see how it looks like.
It sticks to us layout after the float window disappear, so I end up typing in qwerty instead of bépo whenever I hit some autocompletion trigger.
Is there a known workaround ?
this is an excerpt of a vim log, but feel free to close issue if appropriate as is really a borderline case.