29 lines
621 B
Lua
29 lines
621 B
Lua
return {
|
|
"mfussenegger/nvim-dap",
|
|
opts = function(_, config)
|
|
local dap = require("dap")
|
|
|
|
dap.adapters.codelldb = {
|
|
type = "server",
|
|
port = "${port}",
|
|
executable = {
|
|
command = "codelldb",
|
|
args = { "--port", "${port}" },
|
|
}
|
|
}
|
|
|
|
dap.configurations.rust = {
|
|
{
|
|
name = "Launch file",
|
|
type = "codelldb",
|
|
request = "launch",
|
|
program = function()
|
|
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
|
end,
|
|
cwd = '${workspaceFolder}',
|
|
stopOnEntry = false,
|
|
}
|
|
}
|
|
end,
|
|
}
|