-
I'm coming from There is something that bothers me a bit, that I noticed it doesn't happen with What I noticed is that output that is being "streamed" into the This is specially frustrating when in debugging browser tests for example. I'm used to having the browser in debug mode in one screen, and the content of the tests being "followed" on the dap terminal on another screen. Is this something that can be done here? EDITWhat I'm currently doing is: dap.defaults.fallback.focus_terminal = true
dap.listeners.before.attach["dap-view-config"] = function()
require("dap-view").open()
end
dap.listeners.before.launch["dap-view-config"] = function()
require("dap-view").open()
vim.cmd("normal! G")
end It works, I just don't think this is the right approach 🫤 something like this could potentially be a solution, but I'm just not sure how to get it to work with this plugin. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, Can you give this branch a try?
I have essentially implemented the same trick as you, just at a lower level. Indeed, it does have some limitations.
I took a stab at porting this workaround, but I faced the same limitations with the other method. Namely, it does not work properly when restarting a session, which may share the same buffer. To properly support this use case, we'd have to have support for multiple sessions, which is being worked on. If the solution from 846954d covers your use case, let me know. If it doesn't, I'd rather finish the work on multiple sessions first, and then revisit this discussion, if you don't mind. |
Beta Was this translation helpful? Give feedback.
Hello!
Sorry for the long wait! Multi-session support is finally here! Well, almost. I still have to merge the PR 😛
But I went ahead and ported nvim-dap-ui's autoscroll, with commit 34378d0
From my testing, it works perfectly, and plays really nice with multiple sessions.
Can you give it a try?