From 7760aed9f258cf6a7d2c56d547dd3ea45f832025 Mon Sep 17 00:00:00 2001 From: Joseph Hager Date: Sun, 2 Oct 2016 09:31:22 -0500 Subject: [PATCH] Add preliminary tagbar support --- ftplugin/elm/tagbar.vim | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ftplugin/elm/tagbar.vim 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()