29 lines
698 B
VimL
29 lines
698 B
VimL
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1
|
||
|
|
||
|
" 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
|
||
|
|
||
|
endif
|