Added NERDTree & TagBar settings

master
Jef Roosens 2020-10-30 10:54:59 +01:00
parent 6b6eccf959
commit 4e636eb28b
2 changed files with 14 additions and 2 deletions

View File

@ -15,4 +15,12 @@ let NERDTreeIgnore = [
\ '^\.stack-work$', '\.lock$',
\ '^CMakeFiles$', '^CMakeCache.txt$',
\ '.pdf$']
" Show files starting with .
let NERDTreeShowHidden = 1
" Hide 'Press ? for help'
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1
" Close NERDTree after opening a file
let NERDTreeQuitOnOpen = 1
nnoremap <silent> tt :NERDTreeFind<CR>

View File

@ -13,9 +13,13 @@ let g:tagbar_compact = 1
let g:tagbar_autoshowtag = 1
" Don't show status line
let g:no_status_line = 1
" Close tagbar when a tag is selected
let g:tagbar_autoclose = 1
" Open tagbar when opening certain language types
autocmd BufNewFile,BufReadPre *.py,*.java,*.rs,*.cpp,*.c,*.r TagbarOpen
" autocmd BufNewFile,BufReadPre *.py,*.java,*.rs,*.cpp,*.c,*.r TagbarOpen
" Explicitly close tagbar for these types
autocmd BufNewFile,BufReadPre *.txt,*.rst TagbarClose
" autocmd BufNewFile,BufReadPre *.txt,*.rst TagbarClose
nnoremap <silent> tr :TagbarToggle<CR>