Closed
Description
Is your feature request related to a problem? Please describe.
I like the nvim-tree window to take as much width as needed as long as it doesn't cover over 60%
of the screen. For this reason, I'm using
view.width = {
min = -1,
max=60%
}
This works very nice, but when used together with right_align
ed icon extmarks, the longest paths are not always shown in full, even if there is plenty of width in the window. This is likely because the max width computation doesn't take these extmarks into account.
It would be great to have the width computation take extmarks into account.
I guess the modification could be done here?
nvim-tree.lua/lua/nvim-tree/view.lua
Lines 302 to 335 in ca7c4c3