Since I already done this before, I attach the plugin project, maybe somebody will find it useful. I replaced TRichView with TRichEdit, so nothing illegal here.
1. Open and build the Plugin.dpr project with delphi. It should work with just about any version of delphi from D7 to D10Seattle.
2. Copy Plugin.dll in the test directory
3. Build then run Test.lpi with lazarus
Thanks I will check that out as well 😀