Hi,
I’ve been trying to make this [Neovim plugin](https://github.com/amekusa/auto-input-switch.nvim) work. The trouble history is [here](https://github.com/amekusa/auto-input-switch.nvim/issues/1)
The problem:
This Neovim plugin always sets English layout as long as the editor is in the Normal Mode. In Insert Mode it restores the current layout, whatever it was before entering the Normal Mode.
By default the plugin uses something like ibus engine xkb:us::eng or ibus engine xkb:ru::rus. Unfortunately, it won’t work with my GNOME IBus setup. The plugin is customizable:
return {
{
"amekusa/auto-input-switch.nvim",
lazy = false,
opts = {
os_settings = {
linux = {
cmd_get = 'foo', -- set the command that outputs the keyboard state
cmd_set = 'bar %s', -- set the command that changes the keyboard state
}
}
},
},
}
So far nobody knows what is to be put there instead of ibus engine xkb:xxx which isn’t the GNOME case, apparently. Any ideas?
UPD:
~> gsettings get org.freedesktop.ibus.general preload-engines
['xkb:us::eng', 'xkb:ru::rus', 'xkb:es::spa', 'm17n:cu:kbd']
It shows exactly what I’d expect, but ibus engine xkb:xx:xxx won’t work via command line. Something else is in order?