Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyright and Viewing Source Code Definition #430

Open
ossie-git opened this issue Aug 14, 2021 · 1 comment
Open

pyright and Viewing Source Code Definition #430

ossie-git opened this issue Aug 14, 2021 · 1 comment

Comments

@ossie-git
Copy link

Hi,

I'm currently trying to set up vim-lsc to use pyright. It works out of the box by simply:

installing it (it requires Node.js 12+):

npm install -g pyright

and then adding the following:

let g:lsc_server_commands = { 'python' : 'pyright-langserver --stdio'}

However, a problem I've run into is that instead of taking me to the corresponding source code when I ask to Go-to-Definition, it takes me to the typeshed definition (pyi). This behavior is mentioned here - and elsewhere but from the link, it says that VSCode shows both hits and you can select which one you want. Is there any option to configure this in vim-lsc and have it provide me with an option to select one of them (or to always prefer one)? Thanks

@smekkley
Copy link

jedi-language-server works better. I never got pyright work correctly and vscode uses pylance and it's closed source, you never know what kind of patches are in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants