diff options
author | Jesse Luehrs <doy@stripe.com> | 2018-05-07 15:42:46 -0700 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-05-07 15:43:34 -0700 |
commit | 9bc6c48a082657e9985b266170c0dc8d799ba328 (patch) | |
tree | bcb50caaee9539f28917ea6136216602895e9300 | |
parent | eed821a38d88e6388d0b13c2c0e7be780bdb058a (diff) | |
download | conf-9bc6c48a082657e9985b266170c0dc8d799ba328.tar.gz conf-9bc6c48a082657e9985b266170c0dc8d799ba328.zip |
set terraform_fmt_on_save globally
the terraform plugin currently requires this
-rw-r--r-- | vim/ftplugin/terraform.vim | 1 | ||||
-rw-r--r-- | vimrc | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/vim/ftplugin/terraform.vim b/vim/ftplugin/terraform.vim index 4e7db16..463eea9 100644 --- a/vim/ftplugin/terraform.vim +++ b/vim/ftplugin/terraform.vim @@ -1,2 +1 @@ setlocal commentstring=#\ %s -let b:terraform_fmt_on_save = 1 @@ -168,6 +168,9 @@ let g:startify_custom_header = [] let s:fortune = system('fortune -n200 -s ~/.fortune | grep -v -E "^$"') let g:startify_custom_footer = [''] + map(split(s:fortune, '\n'), '" ".v:val') " }}} +" terraform {{{ +let g:terraform_fmt_on_save = 1 +" }}} " textobj {{{ let g:textobj_defs = { \ '/': ['paired'], |