all repos — dotfiles @ c8063e710115d077769c36ff9643d65bd12ea11c

linux dotfiles

config/nvim/ftdetect/hcl.vim

1 2 3 4 5 6 7 8 9 10
silent! autocmd! filetypedetect BufRead,BufNewFile *.tf
autocmd BufNewFile,BufRead *.hcl set filetype=hcl

" Nomad
autocmd BufNewFile,BufRead *.nomad set filetype=hcl

" Terraform
autocmd BufNewFile,BufRead *.tf     set filetype=hcl
autocmd BufNewFile,BufRead *.tfvars set filetype=hcl
autocmd BufRead,BufNewFile *.tfstate,*.tfstate.backup set filetype=json