From 7673a61990d4062adebbe49f71067b0aad90382a Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 27 Sep 2017 20:52:13 +0200 Subject: Change elm provider, closes #224 --- ftplugin/elm/tagbar.vim | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ftplugin/elm/tagbar.vim (limited to 'ftplugin/elm') 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 -- cgit v1.2.3