✨ feat(nvim): kitty terminal added as a fallback for dap; also added mappings for the F keys when debugging
This commit is contained in:
parent
3e33817281
commit
2bb62c8dd4
1 changed files with 50 additions and 0 deletions
50
.config/nvim/lua/plugins/dap.lua
Normal file
50
.config/nvim/lua/plugins/dap.lua
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
return {
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
opts = {
|
||||||
|
defaults = {
|
||||||
|
fallback = {
|
||||||
|
external_terminal = {
|
||||||
|
command = "/usr/bin/kitty",
|
||||||
|
args = { "--class", "kitty-dap", "--hold", "--detach", "nvim-dap", "-c", "DAP" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<F5>",
|
||||||
|
function()
|
||||||
|
require("dap").continue()
|
||||||
|
end,
|
||||||
|
desc = "Debug: Continue",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<F10>",
|
||||||
|
function()
|
||||||
|
require("dap").step_over()
|
||||||
|
end,
|
||||||
|
desc = "Debug: Step over",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<F11>",
|
||||||
|
function()
|
||||||
|
require("dap").step_into()
|
||||||
|
end,
|
||||||
|
desc = "Debug: Step into",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<F12>",
|
||||||
|
function()
|
||||||
|
require("dap").step_out()
|
||||||
|
end,
|
||||||
|
desc = "Debug: Step out",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<F9>",
|
||||||
|
function()
|
||||||
|
require("dap").toggle_breakpoint()
|
||||||
|
end,
|
||||||
|
desc = "Debug: Toggle breakpoint",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue