Improve nerdtree config
This commit is contained in:
parent
8ae601f4dd
commit
0646bd8513
2 changed files with 6 additions and 0 deletions
1
init.vim
1
init.vim
|
@ -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
5
nerdtree.vim
Normal 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
|
Loading…
Reference in a new issue