openlawlibrary / pygls

A pythonic generic language server
https://pygls.readthedocs.io/en/latest/
Apache License 2.0
568 stars 103 forks source link

Client Side API #480

Closed Moosems closed 2 months ago

Moosems commented 2 months ago

Despite all my searching I have yet to find a library for python that provides a simple and clean api to work with lsp language servers that is also very flexible. The best two libraries I have found are sansio_lsp_client and multilspy. The former provides great flexibility if you can figure out how to get started (see here (haven’t used this code because it’s deeply coupled to tkinter and I don’t have the LSP knowledge to decouple it)) and the latter provides a wonderful API but has hardcoded language servers, is not very maintained, and seems to require config files per langserver that sansio doesn’t (still not sure why myself). All that to say: the situation for using LSP as someone with little LSP knowledge is grim and I think pygls is in a position to do some pretty awesome stuff. Hopefully this idea is enjoyed by someone with more experience in this than I that can do us all a massive favor.

Moosems commented 2 months ago

Just found the client page on the docs

Moosems commented 2 months ago

Usage examples would also be appreciated to be honest