pearofducks/ansible-vim

Playbooks in playboosk directory nor recognized as ansible FileType

xenlo opened this issue · 2 comments

xenlo commented

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.

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

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