Uncategorized

How do you jump to imported class files in Python using Nvim?


When I press ctrl and left-click in VS Code, I jump it opens the file where the imported class is defined, and it does the same if I click on a imported class function or attribute.

How do I mimic this functionality in Vim?

Its really convenient!

Example:

from gymnasium import spaces

lidar_space = spaces.Box(low=0.0, high=20.0, shape=(360,), dtype=np.float32)

ctrl left-click “Box” in VS Code will open a file showing where Box is defined.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *