You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
(The original question was posted on stack exchange: https://emacs.stackexchange.com/q/61141/13661)
I am using Emacs 27.1 with the latest versions of all packages. My LSP-related setup is:
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: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).The text was updated successfully, but these errors were encountered: