From 39036a553f353ffb70ec4ad25c0789567fb3518d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 2 Feb 2017 21:44:42 +0100 Subject: Add terraform, closes #163 --- ftdetect/polyglot.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3