diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 20:52:13 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 20:52:13 +0200 |
commit | 7673a61990d4062adebbe49f71067b0aad90382a (patch) | |
tree | 06f6a5e83257abb59930153e15e0644b504ac94b /ftplugin/elm | |
parent | 6a12aa87f41b02a68cd8e6b494e5400367c2b028 (diff) | |
download | vim-polyglot-7673a61990d4062adebbe49f71067b0aad90382a.tar.gz vim-polyglot-7673a61990d4062adebbe49f71067b0aad90382a.zip |
Change elm provider, closes #224
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 |