Fix Rust nvim DAP config
This commit is contained in:
parent
4dbbea76a1
commit
966b0cdeee
|
@ -276,6 +276,23 @@ return {
|
|||
launch_scene = true,
|
||||
},
|
||||
}
|
||||
|
||||
dap.configurations.rust = {
|
||||
{
|
||||
name = "Launch",
|
||||
type = "codelldb",
|
||||
request = "launch",
|
||||
program = function()
|
||||
return vim.fn.input {
|
||||
prompt = "Path to executable: ",
|
||||
default = vim.fn.getcwd() .. "/target/debug/",
|
||||
completion = "file"
|
||||
}
|
||||
end,
|
||||
cwd = "${workspaceFolder}",
|
||||
stopOnEntry = false,
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue