nvim/lua/plugins/dap.lua

38 lines
988 B
Lua
Raw Permalink Normal View History

2023-04-03 12:40:26 +02:00
return {
{
'mfussenegger/nvim-dap',
2024-10-16 15:56:59 +02:00
lazy = true,
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',
2024-10-16 15:56:59 +02:00
lazy = true,
2023-04-03 12:40:26 +02:00
config = function()
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,
dependencies = { 'mfussenegger/nvim-dap', 'nvim-neotest/nvim-nio' }
2023-04-03 12:40:26 +02:00
},
{
'theHamsta/nvim-dap-virtual-text',
2024-10-16 15:56:59 +02:00
lazy = true,
2023-04-03 12:40:26 +02:00
config = true
}
}