Permalink
Browse files

CoffeeScript Tagbar

  • Loading branch information...
1 parent 8fcff6c commit 3a8c23b0b62465345fa6dadaab0785fda7e6d63f @codebeige committed Feb 25, 2013
Showing with 22 additions and 5 deletions.
  1. +2 −0 ctags
  2. +15 −0 vim/bundle/coffeetags/ftplugin/coffee/tagbar-coffee.vim
  3. +5 −5 vimrc
View
2 ctags
@@ -0,0 +1,2 @@
+--recurse=yes
+--tag-relative=yes
@@ -0,0 +1,15 @@
+if executable('coffeetags')
+ let g:tagbar_type_coffee = {
+ \ 'ctagsbin' : 'coffeetags',
+ \ 'ctagsargs' : '',
+ \ 'kinds' : [
+ \ 'f:functions',
+ \ 'o:object',
+ \ ],
+ \ 'sro' : ".",
+ \ 'kind2scope' : {
+ \ 'f' : 'object',
+ \ 'o' : 'object',
+ \ }
+ \ }
+endif
View
10 vimrc
@@ -126,9 +126,8 @@ call togglebg#map("<f5>")
" nerdtree
let g:NERDTreeHijackNetrw=0
let g:NERDTreeWinSize=50
-nmap <silent> <f6> :NERDTreeToggle<cr>
-nmap <silent> <leader>tt :NERDTreeToggle<cr>
-nmap <silent> <leader>tf :NERDTreeFind<cr>
+nmap <silent> <leader>dt :NERDTreeToggle<cr>
+nmap <silent> <leader>df :NERDTreeFind<cr>
" bufexplorer
let g:bufExplorerShowRelativePath=1
@@ -197,10 +196,11 @@ let processing_doc_path="/Applications/Processing.app/Contents/Resources/Java/mo
autocmd BufNewFile,BufReadPost *.pde map <leader>r :w<bar>silent execute "!osascript $PROCESSING_HOME/scripts/run.applescript"<bar>redraw!<cr>
" ctags
-map <leader>ü !ctags -R --exclude=.git --languages=-javascript,sql<cr>
+map <leader>ü !ctags -R<cr>
" tagbar
-nmap <f8> :TagbarToggle<cr>
+nmap <leader>to :TagbarOpenAutoClose<cr>
+nmap <leader>tt :TagbarToggle<cr>
" HAML assets
autocmd BufNewFile,BufReadPost *.hamlc set filetype=haml

0 comments on commit 3a8c23b

Please sign in to comment.