dap kann mich mal

This commit is contained in:
Christoph J. Scherr 2024-02-05 14:44:31 +01:00
parent 796d4550f1
commit b3fc64dd48
1 changed files with 0 additions and 28 deletions

View File

@ -727,34 +727,6 @@ local plugins = {
require("icon-picker").setup { disable_legacy_commands = true }
end,
},
{
"mfussenegger/nvim-dap",
init = function()
require("core.utils").load_mappings "debug"
end,
config = function()
local dap = require "dap"
dap.adapters.gdb = {
type = "executable",
command = "gdb",
args = { "-i", "dap" },
}
dap.configurations.c = {
{
name = "Launch",
type = "gdb",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end,
cwd = "${workspaceFolder}",
},
}
dap.configurations.rust = dap.configurations.c
dap.configurations.cpp = dap.configurations.c
end,
},
}
return plugins