Nvim-tree.lua: Do not reset tree width when opening a document

Created on 22 Oct 2020  路  5Comments  路  Source: kyazdani42/nvim-tree.lua

Today I was working with some nested folders, where I had to increase the width of the tree window to see full name of the file. Once the file is opened (or previewed), tree size goes back to the default size, which is really annoying when you have to preview multiple things.

All 5 comments

Ok, I found a setting in code that is not documented, that does exactly this.

let g:lua_tree_width_allow_resize = v:true

I guess we could just add it to docs.

was added this week, i'll update the docs soon

Also note that it will not work if it's set to 1, so I guess we should either emphasize that in the docs, or make it work for both true and 1.

it should work both for true and 1. I'll fix that altogether

fixed in latest master :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CantoroMC picture CantoroMC  路  7Comments

cloggier picture cloggier  路  8Comments

kutsan picture kutsan  路  5Comments

afonsocarlos picture afonsocarlos  路  3Comments

Shatur95 picture Shatur95  路  9Comments