2019-03-04 03:28:35 -05:00
|
|
|
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'caddyfile') != -1
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2017-03-23 06:43:41 -04:00
|
|
|
" Language: Caddyfile
|
|
|
|
" Author: Josh Glendenning <josh@isobit.io>
|
|
|
|
|
|
|
|
if exists('b:did_ftplugin')
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
|
|
|
setlocal commentstring=#\ %s
|
|
|
|
|
|
|
|
" Add NERDCommenter delimiters
|
|
|
|
let s:delimiters = {'left': '#'}
|
|
|
|
if exists('g:NERDDelimiterMap')
|
|
|
|
if !has_key(g:NERDDelimiterMap, 'caddyfile')
|
|
|
|
let g:NERDDelimiterMap.caddyfile = s:delimiters
|
|
|
|
endif
|
|
|
|
elseif exists('g:NERDCustomDelimiters')
|
|
|
|
if !has_key(g:NERDCustomDelimiters, 'caddyfile')
|
|
|
|
let g:NERDDelimiterMap.caddyfile = s:delimiters
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
let g:NERDCustomDelimiters = {'caddyfile': s:delimiters}
|
|
|
|
endif
|
|
|
|
unlet s:delimiters
|