diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:28:47 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:28:47 +0200 |
commit | 5ded0682bdc20aacdcd958dacdcd1b965c549654 (patch) | |
tree | 55c29bd338c67154fda1762e22369b8ce58260be /ftdetect | |
parent | 26c678b08d88b658ec6069eb2ada2b2ba21c5d39 (diff) | |
download | vim-polyglot-5ded0682bdc20aacdcd958dacdcd1b965c549654.tar.gz vim-polyglot-5ded0682bdc20aacdcd958dacdcd1b965c549654.zip |
Add dlang support, closes #401
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 15eea891..7f622085 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -290,6 +290,41 @@ autocmd BufRead,BufNewFile *.dart set filetype=dart augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 + augroup filetypedetect + " dlang, from d.vim in JesseKPhillips/d.vim +autocmd BufNewFile,BufRead *.d setf d + augroup end +endif + +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 + augroup filetypedetect + " dlang, from dcov.vim in JesseKPhillips/d.vim +autocmd BufNewFile,BufRead *.lst set filetype=dcov + augroup end +endif + +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 + augroup filetypedetect + " dlang, from dd.vim in JesseKPhillips/d.vim +au BufRead,BufNewFile *.dd set filetype=dd + augroup end +endif + +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 + augroup filetypedetect + " dlang, from ddoc.vim in JesseKPhillips/d.vim +au BufRead,BufNewFile *.ddoc set filetype=ddoc + augroup end +endif + +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 + augroup filetypedetect + " dlang, from dsdl.vim in JesseKPhillips/d.vim +autocmd BufNewFile,BufRead *.sdl set filetype=dsdl + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 augroup filetypedetect " dockerfile, from Dockerfile.vim in ekalinin/Dockerfile.vim |