diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2018-12-26 20:22:36 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2018-12-26 20:22:36 +0100 |
commit | f2383782218926011746ea85d7c2539b5980ac87 (patch) | |
tree | 6050130d8a95ac544bf34d7c38aba4611f575d77 /ftdetect | |
parent | 0d5f661cfda484860fca89fb4701797cd56e6833 (diff) | |
download | vim-polyglot-f2383782218926011746ea85d7c2539b5980ac87.tar.gz vim-polyglot-f2383782218926011746ea85d7c2539b5980ac87.zip |
Switch dockerfile provider
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 19 |
1 files changed, 19 insertions, 0 deletions
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 |