The plugin is built on top of Y.js which has CodeMirror integration out of the box, so the code is very simple especially for such a complicated feature.
Now, this is only a prototype and lacks many functions. I expect that implementing collaboration properly might require changes in Joplin core as well.
Plus it's not obvious to me how to handle attachments and note links.
P.S. Even plugins like quick links work!