require "nvchad.mappings" -- add yours here local map = vim.keymap.set local ufo = require("ufo") map("n", ";", ":", { desc = "CMD enter command mode" }) map("n", "mk", "RustLsp moveItem up") map("n", "m,", "RustLsp moveItem down") map("n", "rs", "RustLsp run") map("n", "hh", "RustLsp hover actions") map("n", "ca", "RustLsp codeAction") map("n", "", "w!") map("i", "", "w!") map("n", "sn", "split", { desc = "Horizontal split" }) map("n", "sv", "vsplit", { desc = "Vertical split" }) map("n", "dr", " DapContinue ", { desc = "Continue debug" } ) map("n", "do", function() require("dapui").open() end, { desc = "Open DAP ui" }) map("n", "dc", function() require("dapui").close() end, { desc = "Start or continue debug" }) map("n", "dt", function() require("dapui").toggle() end, { desc = "Toggle DAP ui" }) map("n", "", "DapContinue", { desc = "Start or continue debug" }) map("n", "+", "vertical resize +5", { desc = "Increase vertical buffer" }) -- make the window biger vertically map("n", "-", "vertical resize -5", { desc = "Decrease vertical buffer" }) -- make the window smaller vertically map("n", "_", "horizontal resize +2", { desc = "Increase horizontal buffer" }) -- make the window bigger horizontally by pressing shift and = map("n", "=", "horizontal resize -2", { desc = "Decrease horizontal buffer" }) -- make the window smaller horizontally by pressing shift and - map('n', 'zR', ufo.openAllFolds) map('n', 'zM', ufo.closeAllFolds) -- map({ "n", "i", "v" }, "", " w ")-- map({ "n", "i", "v" }, "", " w ")