nvim-dap-ui icon indicating copy to clipboard operation
nvim-dap-ui copied to clipboard

Opening quickfix list permanently increases height of bottom layout

Open albertfgu opened this issue 1 year ago • 6 comments

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


------------

albertfgu avatar Apr 23 '23 04:04 albertfgu

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

rcarriga avatar May 07 '23 09:05 rcarriga

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.

zippeurfou avatar May 31 '23 15:05 zippeurfou

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

patricio-ferraggi-deel avatar Jul 04 '23 09:07 patricio-ferraggi-deel

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

Raagh avatar Mar 08 '24 09:03 Raagh

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

serranomorante avatar Mar 08 '24 09:03 serranomorante