From f2383782218926011746ea85d7c2539b5980ac87 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 26 Dec 2018 20:22:36 +0100 Subject: Switch dockerfile provider --- ftdetect/polyglot.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 5eaa9325..62aaf3ab 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -240,6 +240,25 @@ autocmd BufRead,BufNewFile *.dart set filetype=dart augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 + augroup filetypedetect + " dockerfile, from Dockerfile.vim in ekalinin/Dockerfile.vim +" Dockerfile +autocmd BufRead,BufNewFile Dockerfile set ft=Dockerfile +autocmd BufRead,BufNewFile Dockerfile* set ft=Dockerfile +autocmd BufRead,BufNewFile *.dock set ft=Dockerfile +autocmd BufRead,BufNewFile *.[Dd]ockerfile set ft=Dockerfile + augroup end +endif + +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 + augroup filetypedetect + " dockerfile, from docker-compose.vim in ekalinin/Dockerfile.vim +" docker-compose.yml +autocmd BufRead,BufNewFile docker-compose*.{yaml,yml}* set ft=yaml.docker-compose + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 augroup filetypedetect " elm, from elm.vim in ElmCast/elm-vim -- cgit v1.2.3