From 7e937d9164e7cf4e3b9ff0ffb635d714a8d040fa Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 21 Nov 2023 09:22:06 -0600 Subject: [PATCH] fix(nvim): properly use codelldb debugger with rustaceanvim --- dots/.config/nvim/lua/plugins/configs/lsp.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/lsp.lua b/dots/.config/nvim/lua/plugins/configs/lsp.lua index 3a52d83a..c3b42b1f 100644 --- a/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -103,12 +103,18 @@ return { server = { on_attach = on_attach, }, + dap = { + adapter = { + type = "server", + port = "${port}", + executable = { + command = "codelldb", + args = { "--port", "${port}" }, + }, + } + }, tools = { executor = require("rustaceanvim.executors").termopen, - on_initialized = function() - vim.g.rustaceanvim.dap = { adaptper = require('rustaceanvim.dap').get_codelldb_adapter(codelldb_path, - liblldb_path) } - end, hover_actions = { replace_builtin_hover = false, },