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

@@ -18,7 +18,7 @@ Plug 'kyazdani42/nvim-tree.lua'
```vim
let g:nvim_tree_side = 'right' "left by default
let g:nvim_tree_width = 40 "30 by default
let g:nvim_tree_width = 40 "30 by default, can be width_in_columns or 'width_in_percent%'
let g:nvim_tree_ignore = [ '.git', 'node_modules', '.cache' ] "empty by default
let g:nvim_tree_gitignore = 1 "0 by default
let g:nvim_tree_auto_open = 1 "0 by default, opens the tree when typing `vim $DIR` or `vim`