I feel like something is wrong with my Imenu setup, because here is what it shows on a simple Python script:
It seems to show some variable definitions, but doesn't have separate entries for the function definitions (the
def ... lines), or the classes. What I want is an Imenu that shows just the function and class definitions, in the order in which they appear. So, I want to see something like:
Function: foo(x) Class: Bar Function: Bar / __init__(s) Function: Bar / buz(x, y)
Is that possible at all? Semantic is not an option because it does not parse functions that are typed using Python's type annotations (e.g. a function like
def foo() -> None: ... does not appear in the list).