diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2018-10-08 19:00:59 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2018-10-08 19:00:59 +0200 | 
| commit | fd74d8b2b170b540680a9bbf6c64990f8ebafd08 (patch) | |
| tree | b1fdef6203a78a21053d1b8e0666ab7a38c36df2 /ftplugin/rust | |
| parent | 055f7710b65dfa2df52fc0b5be2486ae36ac5751 (diff) | |
| download | vim-polyglot-fd74d8b2b170b540680a9bbf6c64990f8ebafd08.tar.gz vim-polyglot-fd74d8b2b170b540680a9bbf6c64990f8ebafd08.zip | |
Updatev3.3.3
Diffstat (limited to 'ftplugin/rust')
| -rw-r--r-- | ftplugin/rust/tagbar.vim | 32 | 
1 files changed, 19 insertions, 13 deletions
| diff --git a/ftplugin/rust/tagbar.vim b/ftplugin/rust/tagbar.vim index 5c95f357..d30dd7d7 100644 --- a/ftplugin/rust/tagbar.vim +++ b/ftplugin/rust/tagbar.vim @@ -7,30 +7,36 @@ if !exists(':Tagbar')      finish  endif +" vint: -ProhibitAbbreviationOption  let s:save_cpo = &cpo  set cpo&vim +" vint: +ProhibitAbbreviationOption -let g:tagbar_type_rust = { -            \ 'ctagstype' : 'rust', -            \ 'kinds' : [ -            \'T:types', -            \'f:functions', -            \'g:enumerations', -            \'s:structures', -            \'m:modules', -            \'c:constants', -            \'t:traits', -            \'i:trait implementations', -            \ ] -            \ } +if !exists('g:tagbar_type_rust') +    let g:tagbar_type_rust = { +                \ 'ctagstype' : 'rust', +                \ 'kinds' : [ +                \'T:types', +                \'f:functions', +                \'g:enumerations', +                \'s:structures', +                \'m:modules', +                \'c:constants', +                \'t:traits', +                \'i:trait implementations', +                \ ] +                \ } +endif  " In case you've updated/customized your ~/.ctags and prefer to use it.  if !get(g:, 'rust_use_custom_ctags_defs', 0)      let g:tagbar_type_rust.deffile = expand('<sfile>:p:h:h:h') . '/ctags/rust.ctags'  endif +" vint: -ProhibitAbbreviationOption  let &cpo = s:save_cpo  unlet s:save_cpo +" vint: +ProhibitAbbreviationOption  " vim: set et sw=4 sts=4 ts=8: | 
