From f81a36b2646cf58ca98a0f27c85fc7470ea4dffa Mon Sep 17 00:00:00 2001 From: qianz Date: Sun, 9 Aug 2026 12:57:04 +0800 Subject: [PATCH 1/2] Route rust debugSingle to rnvim.dap in remote workspaces Remote runnables debug through rnvim's new dap module (codelldb on the workspace host behind an ssh tunnel). The nvim-dap stack moves out of the rnvim exclusion list: the client UI runs locally even when the adapter is remote. Co-Authored-By: Claude Fable 5 --- vim/my.nvim/lua/lsp/servers.lua | 7 ++++++- vim/my.nvim/lua/setup.lua | 7 ++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/vim/my.nvim/lua/lsp/servers.lua b/vim/my.nvim/lua/lsp/servers.lua index 814f9e9..70ca7ae 100644 --- a/vim/my.nvim/lua/lsp/servers.lua +++ b/vim/my.nvim/lua/lsp/servers.lua @@ -56,7 +56,12 @@ local function rust_debug_single(command) if vim.g.rnvim then local ws = require("rnvim.workspace").current() if ws and ws.host ~= "local" then - vim.notify("debugging remote runnables is not supported", vim.log.levels.WARN) + local ok, rdap = pcall(require, "rnvim.dap") + if ok and rdap.debug_rust_runnable then + rdap.debug_rust_runnable(runnable) + else + vim.notify("remote debugging needs a newer rnvim (rnvim.dap missing)", vim.log.levels.WARN) + end return end end diff --git a/vim/my.nvim/lua/setup.lua b/vim/my.nvim/lua/setup.lua index 977c291..c24ffd6 100644 --- a/vim/my.nvim/lua/setup.lua +++ b/vim/my.nvim/lua/setup.lua @@ -78,11 +78,8 @@ local rnvim_excluded = { ["vim-dispatch"] = true, ["cmake4vim"] = true, ["vista.vim"] = true, - ["nvim-dap"] = true, - ["nvim-nio"] = true, - ["nvim-dap-ui"] = true, - ["nvim-dap-virtual-text"] = true, - ["persistent-breakpoints.nvim"] = true, + -- NOTE: the nvim-dap stack stays INCLUDED: rnvim.dap debugs remote + -- runnables through it (adapter runs remotely, client UI is local) ["nvim-coverage"] = true, ["markdown-preview.nvim"] = true, ["vimtex"] = true, From 4306a806965b135998aaff46552299662cfae378 Mon Sep 17 00:00:00 2001 From: qianz Date: Sun, 9 Aug 2026 15:25:43 +0800 Subject: [PATCH 2/2] Call the split rnvim.dap.rust frontend Co-Authored-By: Claude Fable 5 --- vim/my.nvim/lua/lsp/servers.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vim/my.nvim/lua/lsp/servers.lua b/vim/my.nvim/lua/lsp/servers.lua index 70ca7ae..5b09a03 100644 --- a/vim/my.nvim/lua/lsp/servers.lua +++ b/vim/my.nvim/lua/lsp/servers.lua @@ -56,11 +56,11 @@ local function rust_debug_single(command) if vim.g.rnvim then local ws = require("rnvim.workspace").current() if ws and ws.host ~= "local" then - local ok, rdap = pcall(require, "rnvim.dap") - if ok and rdap.debug_rust_runnable then - rdap.debug_rust_runnable(runnable) + local ok, rdap = pcall(require, "rnvim.dap.rust") + if ok and rdap.debug_runnable then + rdap.debug_runnable(runnable) else - vim.notify("remote debugging needs a newer rnvim (rnvim.dap missing)", vim.log.levels.WARN) + vim.notify("remote debugging needs a newer rnvim (rnvim.dap.rust missing)", vim.log.levels.WARN) end return end