diff options
Diffstat (limited to 'ftplugin/elm')
| -rw-r--r-- | ftplugin/elm/tagbar.vim | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/ftplugin/elm/tagbar.vim b/ftplugin/elm/tagbar.vim new file mode 100644 index 00000000..1ad3a48b --- /dev/null +++ b/ftplugin/elm/tagbar.vim @@ -0,0 +1,24 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 +   +if !executable('ctags') +    finish +elseif globpath(&runtimepath, 'plugin/tagbar.vim') ==? '' +    finish +endif + +function! s:SetTagbar() +    if !exists('g:tagbar_type_elm') +        let g:tagbar_type_elm = { +                    \ 'ctagstype' : 'elm', +                    \ 'kinds'     : [ +                    \ 'c:constants', +                    \ 'f:functions', +                    \ 'p:ports' +                    \ ] +                    \ } +    endif +endfunction + +call s:SetTagbar() + +endif | 
