From 75585ced5a7f2f8e43e89da14360dd6ab5a2c512 Mon Sep 17 00:00:00 2001 From: Daniel Piddock <30546489+dpiddock@users.noreply.github.com> Date: Thu, 21 Aug 2025 11:38:34 +0200 Subject: [PATCH] Add tofu to format on save list --- ftplugin/terraform.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim index 01497b0..fab201a 100644 --- a/ftplugin/terraform.vim +++ b/ftplugin/terraform.vim @@ -47,8 +47,10 @@ if get(g:, 'terraform_fmt_on_save', 0) augroup vim.terraform.fmt autocmd! autocmd BufWritePre *.tf call terraform#fmt() + autocmd BufWritePre *.tofu call terraform#fmt() autocmd BufWritePre *.tfvars call terraform#fmt() autocmd BufWritePre *.tftest.hcl call terraform#fmt() + autocmd BufWritePre *.tofutest.hcl call terraform#fmt() augroup END endif