Closed cvignal closed 1 year ago
Yes, I can reproduce this error. just setting up a fresh NvChad, here is the path to reproduce:
nvim
:edit test.txt
<C-n>
<C-l>
<M-h>
<C-x><C-w>k
then the horizontal terminal window will expand to 0.5 ratios, it's really annoying.
It seems this setting cause this error:
when it was false
, everything is fine.
If this is an nvim-tree issue, is it safe to close this? I'm a bit lost on whether there's anything actionable inside of nvterm based on the linked issues.
If this is an nvim-tree issue, is it safe to close this? I'm a bit lost on whether there's anything actionable inside of nvterm based on the linked issues.
it seems like the split-ratio gets changed when toggling nvimtree, so @cvignal most probably wants to have a fixed split-ratio
@cvignal but this behaviour happens with normal buffers too, try this
Open a file in vertical split and resize it , then toggle nvimtree. The same thing happens!
So this is most probably a nvimtree issue
yes, it is most probably a nvimtree issue, even adaptive_size=false
, the split-ratio gets changed when toggling nvimtree.
same here. when nvimtree close, and trying to move to editor and terminal, the issue does not occur.
same here. when nvimtree close, and trying to move to editor and terminal, the issue does not occur.
its a nvimtree issue
It's not a bug, it's a feature. Simply add this option to nvim-tree
view = {
...
preserve_window_proportions = true,
}
BTW I think this should be default option.
@VioletXF ik im late, done!
Hello, I've been trying to use nvterm but I'm not a fan of the default split ration for vertical terminal and tried to change it to 0.3. It does work when opening the terminal but the ratio changes back to 0.5 (the default) when certain events occur such as opening NvimTree. Here is a recording to show what I mean. video-nvterm.webm
Thanks in advance for your help