---@diagnostic disable: undefined-global -- Core Neovim keymaps (non-plugin) return { -- Quick access to find files by content { mode = 'n', lhs = '', rhs = function() require('telescope.builtin').live_grep() end, opts = { desc = 'Search text in all files' } }, -- Clear highlights on search { mode = 'n', lhs = '', rhs = 'nohlsearch', opts = { desc = 'Clear search highlights' } }, -- Exit terminal mode { mode = 't', lhs = '', rhs = '', opts = { desc = 'Exit terminal mode' } }, -- Window navigation (Ctrl + hjkl) { mode = 'n', lhs = '', rhs = '', opts = { desc = 'Focus: Window left' } }, { mode = 'n', lhs = '', rhs = '', opts = { desc = 'Focus: Window right' } }, { mode = 'n', lhs = '', rhs = '', opts = { desc = 'Focus: Window down' } }, { mode = 'n', lhs = '', rhs = '', opts = { desc = 'Focus: Window up' } }, -- Window resizing (Ctrl + Arrow keys) { mode = 'n', lhs = '', rhs = 'resize +2', opts = { desc = 'Window: Increase height' } }, { mode = 'n', lhs = '', rhs = 'resize -2', opts = { desc = 'Window: Decrease height' } }, { mode = 'n', lhs = '', rhs = 'vertical resize -2', opts = { desc = 'Window: Decrease width' } }, { mode = 'n', lhs = '', rhs = 'vertical resize +2', opts = { desc = 'Window: Increase width' } }, -- Move lines up and down (Alt + jk) { mode = 'n', lhs = '', rhs = ':m .+1==', opts = { desc = 'Move line down', silent = true } }, { mode = 'n', lhs = '', rhs = ':m .-2==', opts = { desc = 'Move line up', silent = true } }, { mode = 'v', lhs = '', rhs = ":m '>+1gv=gv", opts = { desc = 'Move selection down', silent = true } }, { mode = 'v', lhs = '', rhs = ":m '<-2gv=gv", opts = { desc = 'Move selection up', silent = true } }, -- Quick save and quit { mode = 'n', lhs = 'w', rhs = 'w', opts = { desc = 'Save file' } }, { mode = 'n', lhs = 'W', rhs = 'wa', opts = { desc = 'Save all files' } }, { mode = 'n', lhs = 'Q', rhs = 'qa', opts = { desc = 'Quit all' } }, }