diff --git a/ftplugin/elm/tagbar.vim b/ftplugin/elm/tagbar.vim new file mode 100644 index 0000000..f74a600 --- /dev/null +++ b/ftplugin/elm/tagbar.vim @@ -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()