-- Keymaps using global map() helper -- File operations map("n", "w", "w", { desc = "Save file" }) map("n", "q", "q", { desc = "Quit" }) map("n", "", "Gitonly", { desc = "Git status (fullscreen)" }) -- Buffer navigation map("n", "", "bnext", { desc = "Next buffer" }) map("n", "", "bprev", { desc = "Previous buffer" }) map("n", "x", "bdelete", { desc = "Close buffer" }) map("n", "b", "enew", { desc = "New buffer" }) -- Window navigation map("n", "", "h", { desc = "Move to left window" }) map("n", "", "j", { desc = "Move to lower window" }) map("n", "", "k", { desc = "Move to upper window" }) map("n", "", "l", { desc = "Move to right window" }) -- Better defaults map("n", "J", "mzJ`z", { desc = "Join lines keeping cursor position" }) map("x", "x", '"_x', { desc = "Delete char without yanking" }) map("x", "p", '"_dP', { desc = "Paste without yanking replaced text" }) map("n", "", "nohlsearch", { desc = "Clear search highlight" }) map("n", "tw", "setlocal wrap!", { desc = "Toggle word wrap" }) -- Terminal map("t", "", "", { desc = "Exit terminal mode" })