local map = vim.keymap.set -- basics map("n", "w", "w", { desc = "Save" }) map("n", "q", "q", { desc = "Quit" }) -- better movement map({ "n", "v" }, "H", "^", { desc = "Line start" }) map({ "n", "v" }, "L", "$", { desc = "Line end" }) -- diagnostics map("n", "[d", vim.diagnostic.goto_prev, { desc = "Prev diagnostic" }) map("n", "]d", vim.diagnostic.goto_next, { desc = "Next diagnostic" }) map("n", "e", vim.diagnostic.open_float, { desc = "Line diagnostic" }) map("n", "dl", "Telescope diagnostics", { desc = "Diagnostics list" }) -- Telescope map("n", "ff", "Telescope find_files", { desc = "Find files" }) map("n", "fg", "Telescope live_grep", { desc = "Live grep" }) map("n", "fb", "Telescope buffers", { desc = "Buffers" }) map("n", "fh", "Telescope help_tags", { desc = "Help" }) -- file tree map("n", "tt", "Neotree toggle", { desc = "Toggle file tree" }) map("n", "tf", "Neotree reveal", { desc = "Reveal file in tree" }) -- Git map("n", "gs", "Git", { desc = "Git status" }) map("n", "gg", "LazyGit", { desc = "LazyGit" }) map("n", "gd", "DiffviewOpen", { desc = "Diffview open" }) map("n", "gD", "DiffviewClose", { desc = "Diffview close" }) map("n", "gh", "DiffviewFileHistory", { desc = "Diffview file history" })