Fix Rust nvim DAP config

This commit is contained in:
Grafcube 2024-03-02 16:55:38 +05:30
parent 4dbbea76a1
commit 966b0cdeee
Signed by: grafcube
GPG Key ID: E383688F2878A440
1 changed files with 17 additions and 0 deletions

View File

@ -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,
},
{