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

Way to toggle all layouts to the same state

Open opalmay opened this issue 2 years ago • 0 comments

Hi, The current behavior of the toggle function toggles all layouts in a way that is independent of each other. So for example say I have two layouts defined. After opening the second one using dapui.open(2), running dapui.toggle() closes layout 2, but opens layout 1.

The logic I'm looking for is:

  1. If any layout is open, close all layouts.
  2. If no layout is open, open all layouts.

Currently there doesn't seem to be a way to achieve this.

opalmay avatar Jan 14 '23 17:01 opalmay