Setting everything during PlugLoad function caused some plugins to misbehave. Plugins are now loaded by Plug and their settings can be either set with a file in the plugin directory (this mimicks the old way of setting plugin up during load) or in after/ directory, which sets options *after* everything has loaded.
19 lines
702 B
VimL
19 lines
702 B
VimL
" PLUGIN: NERDTree
|
|
" " Ecosystem
|
|
" " Plug 'tpope/vim-fugitive' - Will have to take a closer look some other time
|
|
" highlight the line the cursor is on
|
|
let NERDTreeHighlightCursorline = 1
|
|
" remove Press ? for help
|
|
let NERDTreeMinimalUI=1
|
|
" loads nerdtree plugin when starting vim with a directory
|
|
" this is necessary when we lazyload nerdtree with vimplug above
|
|
" since it would only get loaded with nttoggle otherwise, and run netrw
|
|
augroup nerd_loader
|
|
autocmd!
|
|
autocmd VimEnter * silent! autocmd! FileExplorer
|
|
autocmd BufEnter,BufNew *
|
|
\ if isdirectory(expand('<amatch>'))
|
|
\| call plug#load('nerdtree')
|
|
\| execute 'autocmd! nerd_loader'
|
|
\| endif
|
|
augroup END
|