Sublime Forum

LSP pyls configure yapf (ST4)

#1

I updated to ST4 and decided to give LSP a spin.
Everything worked out of the box and I am liking what I see.
I want to use pyls which was straightforward to install and works as I would expect.
My only block now is how to configure the pyls plugins.
In particular, I’d like to use pycodestyle/yapf with some customisation (I want pep8 style with indent width of 2 spaces).
pycodestyle seems to pick up the settings from my setup.cfg file just fine, but I can’t seem to impose any settings to yapf.
Is there any way to feed some config to plugins via the preferences?
What is the intended way of doing this?

0 Likes