-- lua/config/keymaps.lua -- Global keymaps (plugin keymaps live in their own plugin files) local map = vim.keymap.set -- Clear search highlights map('n', '', 'nohlsearch') -- Diagnostics map('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) -- Terminal map('t', '', '', { desc = 'Exit terminal mode' }) map('n', '', ':split | terminal', { desc = '[T]erminal (horizontal split)' }) -- Window navigation map('n', '', '', { desc = 'Move focus to the left window' }) map('n', '', '', { desc = 'Move focus to the right window' }) map('n', '', '', { desc = 'Move focus to the lower window' }) map('n', '', '', { desc = 'Move focus to the upper window' }) -- File explorer map('n', '', ':Neotree toggle', { desc = '[E]xplorer (toggle neotree)' }) -- LazyGit map('n', '', 'LazyGit', { desc = 'LazyGit' }) -- Telescope live grep (fixed: was using broken builtin... syntax) map('n', '', function() require('telescope.builtin').live_grep() end, { desc = '[F]ind (live grep all files)' })