From bee04d384c5ddb642856913c02bd40a50c139a05 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 1 Jun 2020 09:06:55 +0100 Subject: [PATCH] docs(comment): Explain why we use reformatter for terraform-mode Terraform-mode already comes with it's own terraform-format-on-save-mode, but the way it inserts the corrected source into the buffer often causes weird cursor movement which is annoying. --- modules/languages/siren-terraform.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/languages/siren-terraform.el b/modules/languages/siren-terraform.el index f0576f6..d95f9c0 100644 --- a/modules/languages/siren-terraform.el +++ b/modules/languages/siren-terraform.el @@ -21,6 +21,8 @@ (terraform-format-on-save-mode 1)) :config + ;; This does a better job of injecting formatted content than the default + ;; formatting commands included with terraform-mode. (reformatter-define terraform-format :program "terraform" :args '("fmt" "-no-color" "-")