I have been using the dap hover for a while and noticed that it does not delete the buffer on close, searching for a window to resize. As I said, someone should allow to manage the window, either hover.nvim or nvim-dap to implement this hover without ugly copypasta. Here is temporary workaround to fix dap completely breaking hover if the session is closed.
Tested it on python dap with following steps:
Open some python script
Put a breakpoint somewhere
(Optional) Perform hover with LSP
Launch Debug session
Perform hover with DAP
Terminate the session
Try to perform hover again (DAP was breaking this step)
The PR is marked as draft because the buffer is not deleted when closing the DAP hover and ending session. That could be the inacceptable behavior
Also the previous PR was merged as-is and I tend to split the development into separate commits. Maybe it would be better to squash or merge this PR.
I have been using the dap hover for a while and noticed that it does not delete the buffer on close, searching for a window to resize. As I said, someone should allow to manage the window, either hover.nvim or nvim-dap to implement this hover without ugly copypasta. Here is temporary workaround to fix dap completely breaking hover if the session is closed.
Tested it on python dap with following steps:
The PR is marked as draft because the buffer is not deleted when closing the DAP hover and ending session. That could be the inacceptable behavior
Also the previous PR was merged as-is and I tend to split the development into separate commits. Maybe it would be better to squash or merge this PR.