summaryrefslogtreecommitdiffstats
path: root/after/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--after/ftplugin/terraform.vim7
-rw-r--r--ftplugin/litcoffee.vim (renamed from after/ftplugin/vue.vim)4
2 files changed, 9 insertions, 2 deletions
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
diff --git a/after/ftplugin/vue.vim b/ftplugin/litcoffee.vim
index fd786923..ef4aee21 100644
--- a/after/ftplugin/vue.vim
+++ b/ftplugin/litcoffee.vim
@@ -1,5 +1,5 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
-setlocal suffixesadd+=.vue
+runtime ftplugin/coffee.vim
endif