feat: Nvim dap and dap mappings added
This commit is contained in:
10
nvim/.config/nvim/lua/configs/dap.lua
Normal file
10
nvim/.config/nvim/lua/configs/dap.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
local dap = require("dap")
|
||||
|
||||
require("dap.ext.vscode").load_launchjs()
|
||||
|
||||
dap.adapters.cppdbg = {
|
||||
id = "cppdbg",
|
||||
type = "executable",
|
||||
command = "/home/matt/.local/share/nvim/mason/packages/cpptools/extension/debugAdapters/bin/OpenDebugAD7",
|
||||
args = {},
|
||||
}
|
||||
@@ -23,3 +23,11 @@ end, { desc = "Next todo comment" })
|
||||
map("n", "[t", function()
|
||||
require("todo-comments").jump_prev()
|
||||
end, { desc = "Previous todo comment" })
|
||||
|
||||
map("n", "<leader>db", function()
|
||||
require("dap").toggle_breakpoint()
|
||||
end, { desc = "Add a breakpoint" })
|
||||
|
||||
map("n", "<leader>dui", function()
|
||||
require("dapui").toggle()
|
||||
end, { desc = "Toggle debugger ui" })
|
||||
|
||||
Reference in New Issue
Block a user