Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Go-to definition across modules / packages#420

metalalive started this conversation inGeneral
Discussion options

Hi, I have a Python application where the modules (files) are located in different hierarchical packages (directories).

How to properly configurepylsp withnvim so I can perform go-to definition from one module to another module, both are under the same application ?

Currently go-to definition works well with standard library and 3rd-party packages of specific virtual environment, but not the modules within the same application.

Here is my Lua script (for NeoVim) so far :

localdefault_lsp=require("lspconfig")default_lsp.pylsp.setup({settings= {pylsp= {plugins= {maxLineLength=250,jedi_completion= {include_class_objects=true,include_function_objects=true             },jedi= {environment=os.getenv("VENV_PATH_PYLSP")          }-- where OS env vars kick in      }      }      }  })
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
1 participant
@metalalive

[8]ページ先頭

©2009-2025 Movatter.jp