add option to make width a percentage of "&columns" (#473)

This commit is contained in:
booperlv
2021-07-01 03:55:41 +08:00
committed by GitHub
parent 10e845e01c
commit d311c22d46
3 changed files with 16 additions and 4 deletions

View File

@@ -54,7 +54,10 @@ OPTIONS *nvim-tree-options*
|g:nvim_tree_width| *g:nvim_tree_width*
width of the window (default to 30)
width of the window, can be *width_in_columns* or *'width_in_percent%'*
>
let g:nvim_tree_width = 30 " indicates width of 30 columns
let g:nvim_tree_width = '30%' " indicates width of 30% of '&columns'
|g:nvim_tree_side| *g:nvim_tree_side*