diff options
Diffstat (limited to 'config/nvim/init.lua')
| -rw-r--r-- | config/nvim/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 3f094e8..89ab1b8 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -242,6 +242,19 @@ if not vim.g.lazy_bootstrapped then end ------------------------------------------------------ +---- Caps Lock key ----------------------------------- +------------------------------------------------------ + +-- Caps Lock sends F20 (hammerspoon), which reaches Neovim as F22 through tmux. +-- Neovim types the name of a function key nothing maps, so holding it filled +-- the buffer with <F22>. Wispr Flow reads the key before the terminal does, so +-- nothing is lost by dropping it here. Terminal mode too, or holding it in a +-- :terminal would send the key on to the shell running there. +for _, key in ipairs({ "<F20>", "<F22>" }) do + vim.keymap.set({ "n", "x", "s", "o", "i", "c", "t" }, key, "<Nop>") +end + +------------------------------------------------------ ---- Terminal ---------------------------------------- ------------------------------------------------------ |
