mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 05:23:51 -05:00
Add hcl support, closes #403
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user