nvimdotfiles/after/plugin/dap/dap-c.lua

24 lines
426 B
Lua

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()
local str = vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
return str
end,
args = {},
cwd = "${workspaceFolder}",
},
}
dap.configurations.rust = dap.configurations.c