diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:32:04 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:32:04 +0200 |
commit | 8f2a71643a90a8aff03e69ba2b1f8fdb02cebdcf (patch) | |
tree | f35677b1c7636789fa6ffaa5aed4b7aa0e5b50d4 /ftdetect/polyglot.vim | |
parent | af763ef221033974abf502ebce01a464baeca2c6 (diff) | |
download | vim-polyglot-8f2a71643a90a8aff03e69ba2b1f8fdb02cebdcf.tar.gz vim-polyglot-8f2a71643a90a8aff03e69ba2b1f8fdb02cebdcf.zip |
Add hcl support, closes #403
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r-- | ftdetect/polyglot.vim | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 7f622085..afefe4e2 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -542,6 +542,16 @@ autocmd BufNewFile,BufRead *.hx setf haxe augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hcl') == -1 + augroup filetypedetect + " hcl, from hcl.vim in b4b4r07/vim-hcl +autocmd BufNewFile,BufRead *.hcl set filetype=hcl +autocmd BufNewFile,BufRead *.nomad set filetype=hcl +autocmd BufNewFile,BufRead *.tf set filetype=hcl +autocmd BufNewFile,BufRead Appfile set filetype=hcl + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hive') == -1 augroup filetypedetect " hive, from hive.vim in zebradil/hive.vim @@ -1331,13 +1341,6 @@ au BufNewFile,BufRead *.thrift setlocal filetype=thrift augroup end endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tmux') == -1 - augroup filetypedetect - " tmux, from tmux.vim in keith/tmux.vim -autocmd BufNewFile,BufRead {.,}tmux*.conf* setfiletype tmux - augroup end -endif - if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1 augroup filetypedetect " toml, from toml.vim in cespare/vim-toml |