In Inerst mode use <capslock> mapping <Esc> not work
gezhanling opened this issue · comments
Version confirmation
- Confirm
Following prerequisites
- Confirm
Neovim version
NVIM v0.9.5
Branch info
main (Default/Latest)
Minimal (user) folder structure required to reproduce the issue
lua/user/keymap/core.lua
Minimal config with steps on how to reproduce the issue
return {
["i|"] = map_cmd(""):with_noremap():with_desc(""),
}
Expected behavior
I want to use mapping
Additional information
not response
I wrote wrong, the minimal config is:
return { ["i|<capslock>"] = map_cmd("<Esc>"):with_noremap():with_desc(""), }
You'd better remap them using your OS, this work should not be done by nvim
.
I use ahk script is:
#SingleInstance, Force SetCapsLockState, AlwaysOff CapsLock::Esc
But it is only no response in neovim
Use https://github.com/microsoft/PowerToys instead.
It is also not work, but thank you anyway for your response.
And I found that it is Neovim's bug: neovim/neovim#8187
I found a useful way eventually.
And it works well!
how-to-exchange-the-function-of-esc-and-capslock-in-windows-os