I am trying to use Vim as my main IDE. For that, I installed vim-plug, and COC.
This allows me to call those two commands :
:CoCCommand tsserver.organizeImports
:CoCCommand prettier.formatCode
I nnorremap
them both to some leader binding and everything works wells.
What is not working is trying to run them one after the other with one mapping. Everytime I try it, only the last one runs.
I tried chaining them with <CR>
, |
, <bar>
, but none of them work.
What I am understanding from that is that the first command gets canceled by the second one, because they run without waiting for the first one to end.
Is there a way to make this work ? Or I am cursed with two bindings only ?
Thank you in advance for your time