nvim/lua/config/keymaps.lua
2025-03-04 15:23:46 +01:00

9 lines
477 B
Lua

-- ESC to stop highlighting search
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Easier navigration between windows
vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
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' })