You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a note that in order to enable yapf, one must disable autopep8.
Confirmed with the following config, which reports to the log which
formatter is being used when invoking
`<cmd>lua vim.lsp.buf.formatting()<CR>`
```
nvim_lsp.pylsp.setup {
cmd = { "/.../bin/pylsp", "-v", "--log-file=/tmp/pylsp.log" },
settings = {
pylsp = {
plugins = {
autopep8 = {enabled = false},
},
},
},
}
```
I only noticed this because my yapf config uses 2-space indenting
(thanks, Google, for forcing me to do this), and with no configuration
changes it will ignore that config in my `setup.cfg`, because autopep8
doesn't see it.
|`pylsp.configurationSources`|`array` of unique `string` (one of: `pycodestyle`, `pyflakes`) items | List of configuration sources to use. |`["pycodestyle"]`|
7
+
|`pylsp.plugins.autopep8.enabled`|`boolean`| Enable or disable the plugin (disabling required to use `yapf`). |`true`|
7
8
|`pylsp.plugins.flake8.config`|`string`| Path to the config file that will be the authoritative config source. |`null`|
8
9
|`pylsp.plugins.flake8.enabled`|`boolean`| Enable or disable the plugin. |`false`|
9
10
|`pylsp.plugins.flake8.exclude`|`array` of `string` items | List of files or directories to exclude. |`[]`|
0 commit comments