2023-04-03 12:40:26 +02:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
'mfussenegger/nvim-dap',
|
2024-09-17 14:49:38 +02:00
|
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
|
|
config = function()
|
|
|
|
local wk = require("which-key")
|
|
|
|
local dap = require("dap")
|
|
|
|
wk.add({
|
|
|
|
{ '<leader>d', group = "dap" },
|
|
|
|
{ '<leader>db', dap.toggle_breakpoint, desc = "Toggle breakpoint" },
|
|
|
|
{ '<leader>dc', dap.continue, desc = "Launch/resume debug session" },
|
|
|
|
{ '<leader>do', dap.step_over, desc = "Step over" },
|
|
|
|
{ '<leader>di', dap.step_into, desc = "Step into" },
|
|
|
|
{ '<leader>du', dap.step_out, desc = "Step out" },
|
|
|
|
})
|
|
|
|
end
|
2023-04-03 12:40:26 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'rcarriga/nvim-dap-ui',
|
|
|
|
config = function()
|
2024-09-17 14:49:38 +02:00
|
|
|
local dapui = require("dapui")
|
|
|
|
dapui.setup()
|
|
|
|
local wk = require("which-key")
|
|
|
|
wk.add({
|
|
|
|
{ '<leader>dd', dapui.toggle, desc = "Toggle dap ui" }
|
|
|
|
})
|
2023-04-03 12:40:26 +02:00
|
|
|
end,
|
2024-08-13 07:47:26 +02:00
|
|
|
dependencies = { 'mfussenegger/nvim-dap', 'nvim-neotest/nvim-nio' }
|
2023-04-03 12:40:26 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'theHamsta/nvim-dap-virtual-text',
|
|
|
|
config = true
|
|
|
|
}
|
|
|
|
}
|