rcarriga / nvim-dap-ui

A UI for nvim-dap
MIT License
2.69k stars 102 forks source link

Opening quickfix list permanently increases height of bottom layout #268

Open albertfgu opened 1 year ago

albertfgu commented 1 year ago

I'm using the default layout which puts the REPL and console at the bottom. When I open the quickfix list (or other similar types of small windows which open at the bottom), they bump the REPL/console up which keeps the same height. However then when I close the quickfix window, the top of those windows remains at the same location.

Quick visualization

Start:

------------
file

------------
repl | console
------------

After :copen

------------
file
------------
repl | console
------------
quickfix
------------

After closing

------------
file
------------
repl | console

------------
rcarriga commented 1 year ago

You can call dapui.open({ reset = true }) to reset the windows to the default size

zippeurfou commented 1 year ago

I think the issue is how to do it in an automatic way. I have the same issue when mixing it with neotest that open a quickfix for example when there is an error. I could create a shortcut that reset it but my workflow is more as follow: toggle UI -> run tests -> UI size keep changing. Doing a shortcut to change this is possible but it might be nice to have a configuration that automatically "fix"/"freeze" the size of it.

patricio-ferraggi-deel commented 1 year ago

indeed, it would be nice if the ui would just keep the size after somthing else is open or closed, nvim-tree, toggleterm, neotest, etc. currently I have to

keep opening and closing the ui to get it back to its correct size

ezgif com-video-to-gif

Raagh commented 8 months ago

sorry to bring back this but it is annoying that is still happening, it is also weird that this is the only plugin that does this. opening neotest and neo-tree, no increase, opening neotest, toggleterm no increase, opening dap-ui and then whatever else you want, expands the ui.

I modify my workflow so that dap-ui is the only ui opened from the side, I open everything else floating so I dont encounter this

serranomorante commented 8 months ago

Hey, maybe https://github.com/kwkarlwang/bufresize.nvim could help with this.

lukealvoeiro commented 1 month ago

Also noticing this issue.