Add hcl support, closes #403

This commit is contained in:
Adam Stankiewicz
2019-06-08 13:32:04 +02:00
parent af763ef221
commit 8f2a71643a
8 changed files with 118 additions and 347 deletions

15
indent/hcl.vim Normal file
View File

@@ -0,0 +1,15 @@
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'hcl') != -1
finish
endif
if exists('b:did_indent')
finish
endif
let b:did_indent = 1
" cindent seems to work adequately with HCL's brace-y syntax
setlocal cindent
" don't de-indent comments (cindent treats them like preprocessor directives)
setlocal cinkeys-=0#