Install imenu-anywhere
Remove HideShow Minor Mode from Text Mode

It's not generally compatible with Text Mode.