From c12d01a934770144be9ae56d18f32bf40b6a89e0 Mon Sep 17 00:00:00 2001 From: Lucas Grigolon Varela <37870368+lucasgrvarela@users.noreply.github.com> Date: Sat, 1 Nov 2025 11:39:02 +0100 Subject: [PATCH] fix: tfvars should not have filetype terraform tfvars should keep the filetype terraform-tfvars instead of terraform --- ftdetect/hcl.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftdetect/hcl.vim b/ftdetect/hcl.vim index 978a828..1a7d164 100644 --- a/ftdetect/hcl.vim +++ b/ftdetect/hcl.vim @@ -3,5 +3,5 @@ silent! autocmd! filetypedetect BufRead,BufNewFile *.tf autocmd BufRead,BufNewFile *.hcl,*.tfbackend set filetype=hcl autocmd BufRead,BufNewFile .terraformrc,terraform.rc set filetype=hcl -autocmd BufRead,BufNewFile *.tf,*.tofu,*.tfvars,*.tftest.hcl,*.tofutest.hcl set filetype=terraform +autocmd BufRead,BufNewFile *.tf,*.tofu,*.tftest.hcl,*.tofutest.hcl set filetype=terraform autocmd BufRead,BufNewFile *.tfstate,*.tfstate.backup set filetype=json