From 7fc2f7b0ca2b25b1ba0d4b1ecffc369efd3bfb1d Mon Sep 17 00:00:00 2001 From: Noah <73550955+noahapursell@users.noreply.github.com> Date: Sat, 18 May 2024 15:06:38 -0500 Subject: [PATCH] Update init.lua to make esc jj --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 88658ef3..9a107b11 100644 --- a/init.lua +++ b/init.lua @@ -189,6 +189,10 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the left wind vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +-- NOAH +-- Remap 'jj' to 'Esc' in insert mode +vim.api.nvim_set_keymap('i', 'jj', '', { noremap = true, silent = true }) + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands`