diff --git a/vim/my.nvim/lua/lsp/servers.lua b/vim/my.nvim/lua/lsp/servers.lua index 814f9e9..5b09a03 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.rust") + if ok and rdap.debug_runnable then + rdap.debug_runnable(runnable) + else + vim.notify("remote debugging needs a newer rnvim (rnvim.dap.rust 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,