feat: add keybinding for 'jj' in insert mode to <Esc>
This commit is contained in:
parent
63ed116909
commit
0a874fe0c4
3
init.lua
3
init.lua
|
@ -155,6 +155,9 @@ vim.opt.scrolloff = 10
|
|||
vim.opt.hlsearch = true
|
||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||
|
||||
-- Set key combination for escape in insert mode
|
||||
vim.keymap.set('i', 'jj', '<Esc>', {})
|
||||
|
||||
-- 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' })
|
||||
|
|
Loading…
Reference in New Issue