fix(nvim): proper debugging with rust-tools
This commit is contained in:
parent
b03e2af598
commit
b58be4cf8a
@ -21,14 +21,12 @@ local opts = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local rust_tools = require("rust-tools")
|
local rust_tools = require("rust-tools")
|
||||||
|
local codelldb_path = vim.fn.stdpath("data") .. "/mason/bin/codelldb"
|
||||||
|
local liblldb_path = vim.fn.stdpath("data") .. "/mason/packages/codelldb/extension/lldb/lib/liblldb.so"
|
||||||
local rustopts = {
|
local rustopts = {
|
||||||
server = opts,
|
server = opts,
|
||||||
dap = {
|
dap = {
|
||||||
adapter = {
|
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path),
|
||||||
type = "executable",
|
|
||||||
command = "lldb-vscode",
|
|
||||||
name = "rt_lldb",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
tools = {
|
tools = {
|
||||||
-- how to execute terminal commands
|
-- how to execute terminal commands
|
||||||
|
Loading…
x
Reference in New Issue
Block a user