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

Please add basic usage documentation #157

Closed
pkars opened this issue Jan 28, 2022 · 5 comments · Fixed by #185
Closed

Please add basic usage documentation #157

pkars opened this issue Jan 28, 2022 · 5 comments · Fixed by #185
Milestone

Comments

@pkars
Copy link

pkars commented Jan 28, 2022

Hello,
the README seems to be lacking in the actual usage information. Could you kindly add a short section to the README describing the basic usage?

For example, there are no instructions on i) how to start and stop the server (manually), ii) what command I should provide to the client software (e.g. to Kate's LSP plugin), or iii) how to check if the LSP server was installed successfully.

In my opinion, having simple "check that the installation is found by running pylsp --version" -esque instructions in the README would be great, and probably enough for the users who are not planning to write their own LSP client software/plugins.

Thanks.

@ccordoba12
Copy link
Member

You're welcome to improve our Readme to inform users about this, but the info you requested is in pylsp --help.

@ccordoba12
Copy link
Member

ii) what command I should provide to the client software (e.g. to Kate's LSP plugin)

There's a Python entry on that page. Just change pyls for pylsp.

@zeta-00
Copy link

zeta-00 commented Feb 1, 2022

I'm having trouble getting python-lsp-server working with Eglot. If you could document how to do that, then that would be great.

@ccordoba12
Copy link
Member

ccordoba12 commented Feb 1, 2022

The command to start the server is

python3 -m pylsp --check-parent-process

Where to put that command and how to connect to the server depends on your client (Eglot, Kate, Neovim, etc). This project is only about the PyLSP server, that's why we can't add more documentation about it.

@zeta-00
Copy link

zeta-00 commented Feb 1, 2022

Ok thanks, I'll go ask the Emacs Eglot devs.

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

Successfully merging a pull request may close this issue.

3 participants