Skip to content

Commit 7fc2f7b

Browse files
authored
Update init.lua to make esc jj
1 parent 5aeddfd commit 7fc2f7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left wind
189189
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
190190
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
191191
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
192+
-- NOAH
193+
-- Remap 'jj' to 'Esc' in insert mode
194+
vim.api.nvim_set_keymap('i', 'jj', '<Esc>', { noremap = true, silent = true })
195+
192196

193197
-- [[ Basic Autocommands ]]
194198
-- See `:help lua-guide-autocommands`

0 commit comments

Comments
 (0)