-- Keymaps configuration -- See `:help vim.keymap.set()` -- Clear highlights on search when pressing in normal mode vim.keymap.set('n', '', 'nohlsearch') -- Diagnostic keymaps vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) -- Go to first character in line vim.keymap.set('', 'h', '^') -- Go to last character in line vim.keymap.set('', 'l', 'g_') -- Save all files vim.keymap.set('n', 'w', ':wa ') -- Exit terminal mode with easier shortcut vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) -- Keybinds to make split navigation easier -- Use CTRL+ to switch between windows vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) 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' })