Skip to content

Commit

Permalink
Add preliminary tagbar support
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Hager committed Oct 2, 2016
1 parent 2a8eb1c commit 7760aed
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ftplugin/elm/tagbar.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
if !executable('ctags')
finish
elseif globpath(&rtp, 'plugin/tagbar.vim') == ""
finish
endif

function! s:SetTagbar()
if !exists("g:tagbar_type_elm")
let g:tagbar_type_elm = {
\ 'ctagstype' : 'elm',
\ 'kinds' : [
\ 'c:contants',
\ 'f:functions',
\ 'p:ports'
\ ]
\ }
endif
endfunction

call s:SetTagbar()

0 comments on commit 7760aed

Please sign in to comment.