summaryrefslogtreecommitdiffstats
path: root/indent/hcl.vim
blob: 346e8585da5fa5f4cb58a4e0f5d3989e98ea5e4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if polyglot#init#is_disabled(expand('<sfile>:p'), 'hcl', 'indent/hcl.vim')
  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#