emacs-lsp / lsp-pyright

lsp-mode :heart: pyright
https://emacs-lsp.github.io/lsp-pyright
GNU General Public License v3.0
284 stars 24 forks source link

Add lsp-pyright-library-folders-fn for workspace library folders #82

Open Hxppdv opened 1 year ago

Hxppdv commented 1 year ago

Avoid importing project root when temporarily viewing files outside the workspace.

wyuenho commented 2 months ago

What should probably be done is to add an :activation-fn to the client definition to look up a pyrightconfig.json file or a pyproject.toml with a tool.pyright section, and turn off multiroot so lsp-pyright isn't activated on every python mode buffer.