diff options
Diffstat (limited to 'indent/hcl.vim')
-rw-r--r-- | indent/hcl.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indent/hcl.vim b/indent/hcl.vim new file mode 100644 index 00000000..e4a16819 --- /dev/null +++ b/indent/hcl.vim @@ -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# |