Improve nerdtree config

This commit is contained in:
Thomas Gideon 2020-05-11 11:38:35 -04:00
parent 8ae601f4dd
commit 0646bd8513
2 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,7 @@ source jsonnet.vim
source racer.vim source racer.vim
source lsp.vim source lsp.vim
source autoformat.vim source autoformat.vim
source nerdtree.vim
exec "cd " . oldwd exec "cd " . oldwd
" set up a line number on the current line but relative above and below to help " set up a line number on the current line but relative above and below to help

5
nerdtree.vim Normal file
View file

@ -0,0 +1,5 @@
" from https://medium.com/@victormours/a-better-nerdtree-setup-3d3921abc0b9
autocmd bufenter * if (winnr(“$”) == 1 && exists(b:NERDTreeType) && b:NERDTreeType ==primary) | q | endif
let NERDTreeAutoDeleteBuffer = 1
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1