nvim-ide
nvim-ide copied to clipboard
When there are other panels (dap-ui), opening a diff would messed up the layout
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
After opening the diff with both nvim-ide panels and dap-ui panels
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,
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.