Browse files

Fix Docker Compose ftdetect

This upgrade simplifies the Docker Compose file type detection down to
one regex. It also prevents that ftdetect from detecting itself.
Finally, it adds support for .yaml extensions and drops support for
docker-compose files without an extension, as that is madness.

I also changed all the `setf`s to `set ft` because it wasn't working in
Neovim for some reason.
  • Loading branch information...
1 parent bdd0f39 commit 71c8773b8da2e5318d4b384ab5d9e51e36f6d8fd @eligundry eligundry committed Dec 28, 2016
Showing with 1 addition and 3 deletions.
  1. +1 −3 ftdetect/docker-compose.vim
@@ -1,4 +1,2 @@
" docker-compose.yml
-autocmd BufRead,BufNewFile docker-compose.yml set ft=docker-compose
-autocmd BufRead,BufNewFile docker-compose.yml* setf docker-compose
-autocmd BufRead,BufNewFile docker-compose* setf docker-compose
+autocmd BufRead,BufNewFile docker-compose*.{yaml,yml}* set ft=docker-compose

0 comments on commit 71c8773

Please sign in to comment.