pappasam / jedi-language-server

A Python language server exclusively for Jedi. If Jedi supports it well, this language server should too.
MIT License
597 stars 45 forks source link

[Question]: Integrating with (e.g.) black (and similar). #138

Closed carltongibson closed 3 years ago

carltongibson commented 3 years ago

Hi. First off, thanks for the great work. Really enjoying using the jedi-language-server.

I know it's out-of-scope for JLS itself, but I'd like to be able to hook in somehow to run flake8/black/isort on the did save event, whilst letting JLS continue to do it's things. I'm starting to look into the implementation and pygls but I'm wondering if you could offer any pointers as to how best to approach this?

Clearly that's a bit speculative, but any pointers would be gratefully received.

(Please do close without qualm.)

Thanks again!

pappasam commented 3 years ago

As mentioned here, just run diagnostic-language-server in addition to jedi-language-server! If using coc.nvim, I've provided some helpful hints to get you started in coc-jedi:

carltongibson commented 3 years ago

Hi @pappasam — OK, thanks I will check out those links.

I’m not using vim so I have a bit of thinking to do — not expecting to communicate with multiple language servers — but I’ll ponder that.

Thanks!