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

Support pyright #528

Open
perfectspr opened this issue Mar 27, 2019 · 6 comments
Open

Support pyright #528

perfectspr opened this issue Mar 27, 2019 · 6 comments

Comments

@perfectspr
Copy link

Thank you for this awesome tool!

pyright is a static type checker for Python. It is typically 5x or more faster than mypy and other type checkers that are written in Python.

@dalisoft

This comment has been minimized.

@TreeKat71
Copy link

Also want to know if it is in the roadmap.

@lithammer
Copy link

In case you didn't know, Pyright is also a language server nowadays (it powers microsoft/pylance). So you can just use it instead of python-language-server.

$ pyright-langserver --stdio

@idr4n
Copy link

idr4n commented Feb 10, 2021

@lithammer How would you install/configure pyright to use it with kak-lsp? pyright-langserver --stdio is in my path and added something like this to my kak-lsp.toml (but I'm just guessing here):

[language.python]
filetypes = ["python"]
roots = [".git"]
command = "pyright-langserver --stdio"

@lithammer
Copy link

@ivanddm no sorry, I don't use Kakoune. But by looking at the sample kak-lsp.toml in the repo I would guess something like this:

[language.python]
filetypes = ["python"]
roots = ["requirements.txt", "pyproject.toml", "setup.py", ".git"]
command = "pyright-langserver"
args = ["--stdio"]

It's unclear if you also need offset_encoding = "utf-8".

@idr4n
Copy link

idr4n commented Feb 10, 2021

@lithammer thanks for that... I tried what you suggest as well with and without offset_encoding = "utf-8" but still it is not picking up the server when opening python files... I'm going to raise this question in kak-lsp repo.

Thanks again!

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

5 participants