pearofducks / ansible-vim

A vim plugin for syntax highlighting Ansible's common filetypes
MIT License
800 stars 98 forks source link

Playbooks in playboosk directory nor recognized as ansible FileType #112

Closed xenlo closed 4 years ago

xenlo commented 4 years ago

As far as I know, it's quite common to have all the playbooks files under a playbooks directory. So I propose to add that directory in the FileType detection.

pearofducks commented 4 years ago

We set the canonical directories to be detected already - other directories or filenames are trivial to set up for yourself in your .vimrc

xenlo commented 4 years ago

That's sad, but sounds fair with your explanation.

For documentation purpose, and to help anyone with same need who ends here, here is how I solved it in my vimrc:

autocmd BufRead,BufNewFile */playbooks/** set filetype=yaml.ansible