You should associate .yml extension with YAML files.
Go to Settings > Editor > File Types select YAML in Recognized File Types and add *.yml for this name pattern