neovim-config/lua/custom/mappings.lua

31 lines
721 B
Lua
Raw Normal View History

2023-08-23 14:59:36 +00:00
local M = {}
M.dap = {
n = {
["<leader>db"] = {
"<cmd> DapToggleBreakpoint <CR>",
"Toggle Breakpoint"
},
["<leader>dus"] = {
function ()
local widgets = require("dap.ui.widgets");
local sidebar = widgets.sidebar(widgets.scopes);
sidebar.open();
end,
"Open debugging sidebar"
},
["<leader>dc"] = {
"<cmd> DapContinue <CR>",
"Continue debugging"
},
["<leader>rcu"] = {
function ()
require("crates").upgrade_all_crates()
end,
"Update all rust crates"
}
}
}
return M