require "nvchad.mappings" local map = vim.keymap.set map("n", ";", ":", { desc = "CMD enter command mode" }) map("i", "jk", "") map({ "i", "x", "n", "s" }, "", function() require("harpoon"):list():select(1) end, { desc = "Harpoon file 1" }) map({ "i", "x", "n", "s" }, "", function() require("harpoon"):list():select(2) end, { desc = "Harpoon file 2" }) map({ "i", "x", "n", "s" }, "", function() require("harpoon"):list():select(3) end, { desc = "Harpoon file 3" }) map({ "i", "x", "n", "s" }, "", function() require("harpoon"):list():select(4) end, { desc = "Harpoon file 4" }) map({ "i", "x", "n", "s" }, "", function() require("harpoon"):list():select(5) end, { desc = "Harpoon file 5" }) map({ "i", "x", "n", "s" }, "", function() require("harpoon"):list():select(6) end, { desc = "Harpoon file 6" }) map({ "i", "x", "n", "s" }, "", function() require("harpoon"):list():select(7) end, { desc = "Harpoon file 7" }) map({ "i", "x", "n", "s" }, "", function() require("harpoon"):list():select(8) end, { desc = "Harpoon file 8" }) map({ "x", "n", "s" }, "/", "Telescope live_grep", { desc = "telescope live grep" }) map( { "x", "n", "s" }, "", "Telescope find_files follow=true hidden=true", { desc = "telescope find all files" } ) map({ "x", "n", "s" }, ",", "Telescope buffers", { desc = "telescope find buffers" }) map({ "i", "x", "n", "s" }, "", "w", { desc = "General Save file" }) map({ "x", "n", "s" }, "", "ggVG", { desc = "Select all" }) -- Comment map("n", "", "gcc", { desc = "Toggle Comment", remap = true }) map("v", "", "gc", { desc = "Toggle comment", remap = true }) -- Move Lines map("n", "", "m .+1==", { desc = "Move Down" }) map("n", "", "m .-2==", { desc = "Move Up" }) map("i", "", "m .+1==gi", { desc = "Move Down" }) map("i", "", "m .-2==gi", { desc = "Move Up" }) map("v", "", ":m '>+1gv=gv", { desc = "Move Down" }) map("v", "", ":m '<-2gv=gv", { desc = "Move Up" })