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.
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
andmultilspy
. 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.