Update init.lua to make esc jj
This commit is contained in:
parent
5aeddfdd5d
commit
7fc2f7b0ca
4
init.lua
4
init.lua
|
|
@ -189,6 +189,10 @@ vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left wind
|
|||
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
|
||||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||
-- NOAH
|
||||
-- Remap 'jj' to 'Esc' in insert mode
|
||||
vim.api.nvim_set_keymap('i', 'jj', '<Esc>', { noremap = true, silent = true })
|
||||
|
||||
|
||||
-- [[ Basic Autocommands ]]
|
||||
-- See `:help lua-guide-autocommands`
|
||||
|
|
|
|||
Loading…
Reference in New Issue