Currently ivy-xref doesn't work with wgrep-occur. It seems no suitable occur-fn is written. This would greatly help refactoring code.