hashivim / vim-terraform

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

Format on save not working #159

Closed pantelis-karamolegkos closed 3 years ago

pantelis-karamolegkos commented 3 years ago

I have set in my ~/.vimrc

let g:terraform_fmt_on_save=1

However when saving, the text is not formatted.

However the :TerraformFmt seems to be working when running it manually.

dimbleby commented 3 years ago

Works fine here. The autcommand is set up here, hard to see how :TerraformFmt could be working but that not.

Maybe you have something else in your .vimrc that somehow breaks this?!? Do update us if you figure it out, perhaps the next person will appreciate it.

pantelis-karamolegkos commented 3 years ago

Closing this as it seems to be working fine! Apologies for the hassle