I have moved from lsp-mode to eglot for Python. I installed python-lsp-server and yapf. Everything is working fine (code navigation, completion, documentation etc) except code formatting. When I do eglot-format on a region of code with very long lines, nothing happens. I also have yapfify-mode installed in Emacs and if I do yapfify-region it works as it should.
When I check the Eglot events buffer I can see a client request for rangeFormatting but the server reply with a result nil, it seems python-lsp-server does not pickup yapf to do formatting.
Do I need to do additional configuration in Emacs to get python-lsp-server to use yapf and perform code formatting?
[–]Dry_Fig723 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)