From b58be4cf8a2ef19e7183edd30e3812c14d207e7f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 17 Oct 2022 22:27:05 -0500 Subject: [PATCH] fix(nvim): proper debugging with rust-tools --- .../primary/config/lua/plugins/configs/lsp.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/lsp.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/lsp.lua index 1a44d469..74ed3e0f 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/lsp.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/lsp.lua @@ -21,14 +21,12 @@ local opts = { } 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 = { server = opts, dap = { - adapter = { - type = "executable", - command = "lldb-vscode", - name = "rt_lldb", - }, + adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path), }, tools = { -- how to execute terminal commands