16 lines
339 B
VimL
16 lines
339 B
VimL
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1
|
||
|
|
||
|
if exists("b:did_indent")
|
||
|
finish
|
||
|
endif
|
||
|
let b:did_indent = 1
|
||
|
|
||
|
setlocal indentexpr=
|
||
|
|
||
|
" cindent actually works for nginx' simple file structure
|
||
|
setlocal cindent
|
||
|
" Just make sure that the comments are not reset as defs would be.
|
||
|
setlocal cinkeys-=0#
|
||
|
|
||
|
endif
|