summaryrefslogtreecommitdiffstats
path: root/indent/nginx.vim
blob: e9335e7afd30183a231f1c68e25b272d1ca2d341 (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'), 'nginx', 'indent/nginx.vim')
  finish
endif

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#