From 0801eac01aab5940fc1e4409ba749383cc353bc2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 23 Mar 2017 11:28:19 +0100 Subject: Update --- after/ftplugin/terraform.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'after/ftplugin/terraform.vim') diff --git a/after/ftplugin/terraform.vim b/after/ftplugin/terraform.vim index f495e583..17115b1b 100644 --- a/after/ftplugin/terraform.vim +++ b/after/ftplugin/terraform.vim @@ -18,4 +18,11 @@ if g:terraform_align && exists(':Tabularize') endfunction endif +" Match the identation put in place by Hashicorp and :TerraformFmt, https://github.com/hashivim/vim-terraform/issues/21 +if get(g:, "terraform_align", 1) + setlocal tabstop=2 + setlocal softtabstop=2 + setlocal shiftwidth=2 +endif + endif -- cgit v1.2.3