-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to enable pyright? #56
Comments
@wxguy thanks for bringing this to my attention. I am not a pyright user but maybe I should be. I will look into it. Currently you can enable pyright and disable pylsp in Lazyman using the LSP menu ( My understanding of the issue with following module imports was the opposite, pylsp did and pyright did not. But, that may be old news and I have not kept up with that issue. Anyway, this is an area I should improve. If you try out any of the above, let me know how it goes and how to improve the default config and ability to make this easily configurable. |
Thanks for your clarification. I did enable and checked for autocompletion as per your suggestions. Here is what my observations. Configuration Issue When I enabled Multiple Lint Suggestions When I only enabled No Autocompletion for Pyright After enabling Too Many Warnings This one I have noticed whenever I open a Python script. Many warnings I could see in the notification. This does not happen if I open any other file type. I could have posted the actual warning but I not aware where the warning file is located. I am sure you can look into these issues. |
@wxguy thanks for testing and reporting issues. It really helps. I've added a switch in the Lazyman LSP config menu to disable You may wish to update your Lazyman installation with cp -a ~/.config/nvim-Lazyman ~/.config/nvim-Lazyman.bak
lazyman -U |
Still the issue appears to exisit. I did a clean install by executing following commands:-
Thereafter enabled only pyright from lsp config window. Howwver, it didi not disable When I opened a simple python script, this is what I get: There is a clear-cut repetition of diagnosis from pyright and pylsp. Hope it helps you in debugging the issue. |
Thanks for the additional details. I am now able to reproduce this problem. Hopefully I will be able to publish a fix this week. |
I am finding increasingly difficult with pylsp which does not work if the module imports dynamically. While reading about this issue, I could feel that pyright would be better choice than for Python completion. In addition, when I looked at pylsp release stats, it was released around 2020 which I feel is very old.
I feel that you should consider including pyright for python LSP rather than pylsp for
lazyman
default config. Or you can have an option in configuration section to choose pylsp or pyright which would be best.Meanwhile, is there a way to enable
pyright
for auto-completion instead ofpylsp
manually?The text was updated successfully, but these errors were encountered: