Closed dajuno closed 3 years ago
@dajuno I think it is due to a mistake in your black
"args" setting.
Your setting:
"args": ["--quiet", "--line-length 80", "-"]
Change to this setting and try it:
"args": ["--quiet", "--line-length", "80", "-"]
Oh indeed, you are right! I thought I had tested without this setting, but apparently not. Thank you :)
@dajuno Has this issue been resolved? If it is, please close the issue.
I set up
coc-diagnostic
with the python formattersblack
andisort
.isort
works butblack
does not seem to be invoked by:call CocAction("format")
.nvim/coc setup
init.vim
black: version 20.8b1 isort: 5.7.0 coc-plugins: coc-jedi, coc-diagnostic, coc-json
coc-settings.json
:CocInfo after calling
:call CocAction("format")
in MWE belowMWE:
isort
reorders the imports,black
should change the single quotes to double quotes. However,:call CocAction("format")
produces:I.e., the
black
formatting is ignored (see:CocInfo
above).Any advice is appreciated! And thank you for your work.