Could the nim plugin be open sourced?

I don’t. LSP-based plugins nowadays use either the native APIs or LSP4IJ. LSP4IJ can be used non-programmatically but the native APIs can’t.