vim-php / tagbar-phpctags.vim

Using phpctags to generate php ctags index for vim plugin tagbar.
http://www.vim.org/scripts/script.php?script_id=4125
105 stars 10 forks source link

Remove variables from tagbar #7

Open 3cooper opened 10 years ago

3cooper commented 10 years ago

I'd like to remove variables from the tagbar window. It seems that this is possible in plan tagbar ( https://gist.github.com/ecoleman/1525027 ) but this does not work with this tagbar extension.

bogota commented 9 years ago

phpctags provides a --kinds option to control over types of tags output, so inserting proper --kinds flags to 'ctagsargs' section of tagbar-phpctags.vim should suppress any showing of variables. As an example:

let g:tagbar_type_php = {
    \ 'ctagsbin'  : tagbar_phpctags_bin,
    \ 'ctagsargs' : '--kinds=dficpmnt --memory="' . tagbar_phpctags_memory_limit . '" -f -',

    ...

\ }
InFog commented 3 years ago

The idea is great. I personally see no problem in having the variables there. tagbar is folding them anyway. Is any of you interested in contributing such feature?