preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.12k stars 486 forks source link

Indicate async def's in Python #760

Closed p5a0u9l closed 3 years ago

p5a0u9l commented 3 years ago

It would be nice if there were a separate function tag for async def functions

raven42 commented 3 years ago

@p5a0u9l unfortunately ctags doesn't differentiate between def and async def for functions. It treats them both as the same, so it would not be very easy for tagbar to split these up.

That said, would changing your .vimrc to show the data-type work using the g:tagbar_show_data_type option? This would at least provide a visual indicator for an async def when looking at the tagbar window. It would still be sorted in with other functions, but it does provide a quick visual indicator.

Example: image

p5a0u9l commented 3 years ago

Thank you for the quick response! Using g:tagbar_show_data_type is a perfect solution, thank you