Intro
Hello, I love the simplicity of your plugin, thanks man
Module(s)
m4xshen/autoclose.nvim
, lyokha/vim-xkbswitch
Description
- When the Russian layout is active, it is impossible to use letters that are on the same key together with '[', ']', '{', '}', `'`, `"`, '`', '~'
Error that I get:
E15: Invalid expression: <Lua 174: path/to/file.lua:157>
- I had set up
vim.opt.langmap
but it didn't help
local langmap_keys = {
'ёЁ;`~', '№;#',
'йЙ;qQ', 'цЦ;wW', 'уУ;eE', 'кК;rR', 'еЕ;tT', 'нН;yY', 'гГ;uU', 'шШ;iI', 'щЩ;oO', 'зЗ;pP', 'хХ;[{', 'ъЪ;]}',
'фФ;aA', 'ыЫ;sS', 'вВ;dD', 'аА;fF', 'пП;gG', 'рР;hH', 'оО;jJ', 'лЛ;kK', 'дД;lL', [[жЖ;\;:]], [[эЭ;'\"]],
'яЯ;zZ', 'чЧ;xX', 'сС;cC', 'мМ;vV', 'иИ;bB', 'тТ;nN', 'ьЬ;mM', [[бБ;\,<]], 'юЮ;.>',
}
vim.opt.langmap = table.concat(langmap_keys, ',')
Neovim version
0.9.4
Steps to reproduce
minimal reproducing config
Using folke/lazy.nvim to manage plugins.
return {
{
"m4xshen/autoclose.nvim", enabled = true,
config = function()
require("autoclose").setup({
keys = {
["$"] = { escape = true, close = true, pair = "$$", disabled_filetypes = {} },
["<"] = { escape = true, close = true, pair = "<>" },
},
options = {
disabled_filetypes = { "text", "markdown" },
disable_command_mode = true,
}
})
end
},
}
return {
"lyokha/vim-xkbswitch",
}
-- ...
vim.g.XkbSwitchEnabled = 1
vim.g.XkbSwitchIMappings = { "ru" }
-- ...
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc104
layout: us,ru
options: ctrl:nocaps,grp:win_space_toggle
Trying to build keymap using the following components:
keycodes: evdev+aliases(qwerty)
types: complete
compat: complete
symbols: pc+us+ru:2+inet(evdev)+ctrl(nocaps)+group(win_space_toggle):1+group(win_space_toggle):2
geometry: pc(pc104)
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+ru:2+inet(evdev)+ctrl(nocaps)+group(win_space_toggle):1+group(win_space_toggle):2" };
xkb_geometry { include "pc(pc104)" };
};
Expected behavior
file.*
and active Russian keyboard layout:
Before Input After
------------------------------------
Лорем | х Лорем х
Лорем | э Лорем э
------------------------------------
Actual behavior
file.*
and active Russian keyboard layout:
Before Input After
------------------------------------
Лорем | х Лорем *ERROR*
Лорем | э Лорем *ERROR*
------------------------------------