modular plugins
This commit is contained in:
parent
2cbdb13009
commit
1207bdfaff
19 changed files with 1044 additions and 1228 deletions
35
lua/plugin-configs/nvim-dap.lua
Normal file
35
lua/plugin-configs/nvim-dap.lua
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
return {
|
||||
'mfussenegger/nvim-dap',
|
||||
recommended = true,
|
||||
desc = 'Debugging support. Requires language specific adapters to be configured. (see lang extras)',
|
||||
|
||||
dependencies = {
|
||||
'rcarriga/nvim-dap-ui',
|
||||
'nvim-neotest/nvim-nio',
|
||||
-- virtual text for the debugger
|
||||
{
|
||||
'theHamsta/nvim-dap-virtual-text',
|
||||
opts = {},
|
||||
},
|
||||
},
|
||||
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>dB", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" },
|
||||
{ "<F9>", function() require("dap").toggle_breakpoint() end, desc = "Toggle Breakpoint" },
|
||||
{ "<F5>", function() require("dap").continue() end, desc = "Run/Continue" },
|
||||
{ "<leader>da", function() require("dap").continue({ before = get_args }) end, desc = "Run with Args" },
|
||||
{ "<leader>dC", function() require("dap").run_to_cursor() end, desc = "Run to Cursor" },
|
||||
{ "<leader>dg", function() require("dap").goto_() end, desc = "Go to Line (No Execute)" },
|
||||
{ "<F11>", function() require("dap").step_into() end, desc = "Step Into" },
|
||||
{ "<leader>dj", function() require("dap").down() end, desc = "Down" },
|
||||
{ "<leader>dk", function() require("dap").up() end, desc = "Up" },
|
||||
{ "<leader>dl", function() require("dap").run_last() end, desc = "Run Last" },
|
||||
{ "<S-F11>", function() require("dap").step_out() end, desc = "Step Out" },
|
||||
{ "<F10>", function() require("dap").step_over() end, desc = "Step Over" },
|
||||
{ "<leader>dr", function() require("dap").repl.toggle() end, desc = "Toggle REPL" },
|
||||
{ "<leader>ds", function() require("dap").session() end, desc = "Session" },
|
||||
{ "<S-F5>", function() require("dap").terminate() end, desc = "Terminate" },
|
||||
{ "<leader>dw", function() require("dap.ui.widgets").hover() end, desc = "Widgets" },
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue