How to enable diff for *.odt files?

I am using git to version my *.odt files. Locally I can enable odt2txt by adding a section to the .git/config file so git can show the diff of these files. But how to tell GitLab to use diff drivers?

I’d like to do this same thing but with xls2txt. Any ideas?