nvim-ide icon indicating copy to clipboard operation
nvim-ide copied to clipboard

When there are other panels (dap-ui), opening a diff would messed up the layout

Open rosstang opened this issue 1 year ago • 0 comments

I use dap-ui with nvim-ide. When dap-ui is activated, opening a diff from nvim-ide change panel would cause the whole neovim layout messed up.

Before opening the diff with both nvim-ide panels and dap-ui panels nvim-ide-with-dap-ui-before-diff

After opening the diff with both nvim-ide panels and dap-ui panels nvim-ide-with-dap-ui-after-diff Note the left panel and right panel are now next to each other, while the old editor window is closed. A new one is being created which is at the left (where the left panel is supposed to be at)

I understanding that it may not really be in scope to behave nicely when there are other panels other than nvim-ide, but I am proposing a simple fix to workaround the issue.

See the pull request here, https://github.com/ldelossa/nvim-ide/pull/116

After the fix, at least the diff is now opened in the main editor window,

nvim-ide-with-dap-ui-after-diff(fixed)

Note that the dimensions of the components are also changed, but it is something quite common among using different panels/creating and deleting windows, and I have a shortcut to restore their default size.

rosstang avatar May 14 '23 08:05 rosstang