Linux LO mimetypes need to be changed but how?

The Mimetypes are incorrect. When editing computer code files like .sh ,.txt files, etc., LibreOffice Write must be excluded from the context menu options. How can I change this when they are controlled from the installation which overwrites changes of personal .desktop files in /home/ineuw/.local/share/applications as well.

https://wiki.archlinux.org/title/Default_Applications

Andreas, Villeroy,

You are my hero.

Many thanks for the links

ineuw