After update cannot set keybinding mode to terminal
theKlisha opened this issue · comments
Hi, my config is partially broken after update to 31468fd.
Message I'm getting:
Invalid declaration of keys:
mode: expected one of { "n", "i", "c", "x", "v" }, got t
{ "t", "<C-\\>", {
noremap = true
} }
Part of config in question:
command_center.add({{
desc = "Toggle terminal",
cmd = "<CMD>ToggleTerm<CR>",
keys = {{"n", "<C-\\>", noremap}, {"t", "<C-\\>", noremap}}
}})
I have already tried to add t
to the list in following line, and it seams to solve te issue. Is there any reason why it should't be there?
https://github.com/FeiyouG/command_center.nvim/blob/81a2200d90bcb2477d2db7375fe7aa9b8a9007d5/lua/command_center/constants.lua#L33
Anyway thanks for the work on this plugin. Apart for occasional issues, I really do enjoy using it.
I added "t" into keymap_modes
and tried to register a keymap with terminal mode, and it worked. Could you please check whether 3d2c167 solves this issue?
Yes, that solves it. Thank you.