diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-02-02 21:44:42 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-02-02 21:44:42 +0100 |
commit | 39036a553f353ffb70ec4ad25c0789567fb3518d (patch) | |
tree | 9993c4d2ce0fddc3b014e39f18014d6af54a93bb /ftdetect | |
parent | e685e4b431ab017d1aec9f9668fbeeeb6e7113e6 (diff) | |
download | vim-polyglot-39036a553f353ffb70ec4ad25c0789567fb3518d.tar.gz vim-polyglot-39036a553f353ffb70ec4ad25c0789567fb3518d.zip |
Add terraform, closes #163
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 9 |
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 |