Replies: 3 comments 5 replies
-
@tkrabel, what do you think about this one? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@daara-s just a QQ: does that import completion lead to a syntax error or is it working, but not what you want? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'll try adding the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm having issues configuring pylsp to not add "src" when importing code from within my repository.
e.g. I'm working on a REPO using poetry and want to import a class y from a directory in
src/
what I expect:
what I get:
I'm using pylsp within neovim (here is my config for setting it up)
I've tried setting the
python_path
based on the usage note in the docsbut it's still suggesting the import as
from src.REPO.x import y
.I've also ensured that neovim is running within the poetry environment.
Does anyone know how to set up pylsp's auto-import completion without it using
src.
in the import statement?Beta Was this translation helpful? Give feedback.
All reactions