diff --git a/vim/compiler/terraform.vim b/vim/compiler/terraform.vim new file mode 100644 index 0000000..ab5eae5 --- /dev/null +++ b/vim/compiler/terraform.vim @@ -0,0 +1 @@ +setlocal makeprg=terraform\ -chdir=%:p:h\ validate\ -json diff --git a/vim/ftplugin/terraform.vim b/vim/ftplugin/terraform.vim index bac878b..e33a096 100644 --- a/vim/ftplugin/terraform.vim +++ b/vim/ftplugin/terraform.vim @@ -1 +1,2 @@ +compiler terraform setlocal formatprg=terraform\ fmt\ -