I'd like to be able to turn it off when starting a new project and turn it back on when I have written more code.
Based on :help coc
, I would use :CocDisable
and :CocEnable
.
If you can find a way to detect if coc is enabled (b:coc_enabled
I think was mentioned in the documentation and looks helpful), you could write a smarter “toggle” command.
:help coc
(or whatever the relevant section is)? Also, sometimes the project community (eg, on GitHub) has answers to questions about the project. – D. Ben Knoble♦ Oct 2 '20 at 18:09