Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support secondary filetypes #839

Open
fenuks opened this issue Oct 26, 2022 · 0 comments
Open

Support secondary filetypes #839

fenuks opened this issue Oct 26, 2022 · 0 comments

Comments

@fenuks
Copy link

fenuks commented Oct 26, 2022

I would like to add support for openapi in my configuration. I've found this snippet

let g:tagbar_type_yaml = {
                    \  'ctagstype': 'openapi',
                    \  'kinds': [
                    \          'p:path',
                    \          'd:schema',
                    \          'P:parameter',
                    \          'R:response',
                    \          ]
                    \ }

It works, but I don't want to define it for all yaml files. I would rather prefer to use additional filetype openapi to specify configuration, so filetype would be yaml.openapi. It seems that tagbar ignores additional filetypes on purpose, here. Can this limitation be lifted, that is, could tagbar iterate over all filetypes, and perhaps merge configuration, or there could be option to tell tagbar to use last filetype instead of main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant