mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
16 lines
333 B
VimL
16 lines
333 B
VimL
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#
|