hashivim / vim-terraform

basic vim/terraform integration
http://hashivim.github.io/vim-terraform
ISC License
1.07k stars 110 forks source link

Question - TerraformFMT #174

Closed Aur0nd closed 2 years ago

Aur0nd commented 2 years ago

Hi there,

I was wondering if there is a way to terraformFMT on :w! or something similar? that'd be a life saver.

Aur0nd commented 2 years ago

for anyone reading this, add the below in your init.vim let g:terraform_fmt_on_save = 1

FilBot3 commented 1 year ago

I put this in my

but it doesn't seem to be working for me. The contents of my file are:

let g:terraform_fmt_on_save=1

But no dice for me. WHen I run :scriptnames I do see that my terraform.vim file is loaded. I can also run :TerraformFmt manually though.

FilBot3 commented 1 year ago

Made my own issue: https://github.com/hashivim/vim-terraform/issues/175