tagbar-phpctags.vim icon indicating copy to clipboard operation
tagbar-phpctags.vim copied to clipboard

Remove variables from tagbar

Open 3cooper opened this issue 10 years ago • 2 comments

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.

3cooper avatar Apr 02 '14 18:04 3cooper

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 -',

    ...

\ }

bogota avatar Jun 26 '15 17:06 bogota

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?

InFog avatar Jan 05 '21 21:01 InFog