neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

How to enable format on save? #239

Open gozes opened 4 years ago

gozes commented 4 years ago

The Read me says that format on save is off by default however I don't see see an option in the read me to turn it back on. So how do I set to on?

Note: Running CocCommand also dosn't bring an option to turn it back on.

f-koehler commented 4 years ago

I just turned it on for the python filetype in my coc settings:

{
  ...
  "coc.preferences.formatOnSaveFiletypes": [
    ...
    "python"
  ],
}
gozes commented 4 years ago

thanks I will try that :)