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' })