31 lines
721 B
Lua
31 lines
721 B
Lua
|
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
|