To remove the highlighting of folders in oh-my-posh, you need to customize your theme configuration. The folder highlighting is typically defined in the theme's JSON configuration file under the properties or segment settings.