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" })