From 0a874fe0c49feb7b343b5a883da2da644361eed1 Mon Sep 17 00:00:00 2001 From: David Drottson Date: Mon, 18 Mar 2024 08:42:44 +0100 Subject: [PATCH] feat: add keybinding for 'jj' in insert mode to --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 3dc5ae57..dd39ed5a 100644 --- a/init.lua +++ b/init.lua @@ -155,6 +155,9 @@ vim.opt.scrolloff = 10 vim.opt.hlsearch = true vim.keymap.set('n', '', 'nohlsearch') +-- Set key combination for escape in insert mode +vim.keymap.set('i', 'jj', '', {}) + -- Diagnostic keymaps vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' })