cmp-dap icon indicating copy to clipboard operation
cmp-dap copied to clipboard

dap-repl buffer does not automatically close

Open dohmjan opened this issue 1 year ago • 3 comments

Hello! I am using nvim-dap with your nvim-dap-ui and lately also tried cmp-dap. I really like it, thank you!

Without cmp-dap, the repl buffer automatically closes when toggling/closing the dap-ui. The corresponding issue was raised here. Your workaround in this comment and your PR in nvim-dap both worked. Now, after I included cmp-dap, the issue reappears. Could you imagine whether this is due to cmp-dap?

dohmjan avatar Apr 03 '23 08:04 dohmjan

By not closed do you mean it is still listed (i.e. appears in :ls)?

There's nothing in cmp-dap that would be do that, but perhaps nvim-cmp is doing something? I don't experience any issue with it however

rcarriga avatar Apr 09 '23 09:04 rcarriga

Yes. It doesn't exist until I select something from autocompletion in repl, then: image

Finished the session and it's still there.

jaghaimo avatar Apr 10 '23 11:04 jaghaimo

I encountered the same behavior and could not find a quick fix. The temporary workaround I am using at the moment is to disable cmp-dap for [dap-repl] buffers (comment out "dap-repl" when setting up require("cmp").setup.filetype(...)) and rely on nvim-dap's completion suggestion via <C-x><C-o> (built-in omnifunc implementation).

oshevtsov avatar Sep 24 '23 11:09 oshevtsov