summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-02-02 21:44:42 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-02-02 21:44:42 +0100
commit39036a553f353ffb70ec4ad25c0789567fb3518d (patch)
tree9993c4d2ce0fddc3b014e39f18014d6af54a93bb /ftdetect
parente685e4b431ab017d1aec9f9668fbeeeb6e7113e6 (diff)
downloadvim-polyglot-39036a553f353ffb70ec4ad25c0789567fb3518d.tar.gz
vim-polyglot-39036a553f353ffb70ec4ad25c0789567fb3518d.zip
Add terraform, closes #163
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 02e8832a..54229aa7 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -925,6 +925,15 @@ au BufNewFile,BufRead *.timer set filetype=systemd
endif
+" ftdetect/terraform.vim
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1
+
+au BufRead,BufNewFile *.tf setlocal filetype=terraform
+au BufRead,BufNewFile *.tfvars setlocal filetype=terraform
+au BufRead,BufNewFile *.tfstate setlocal filetype=javascript
+
+endif
+
" ftdetect/textile.vim
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'textile') == -1