In documentation, note that g:ack_default_options only applied if g:ackprg unset!
Thanks to
if !exists("g:ackprg")
if executable('ack')
let g:ackprg = "ack"
elseif executable('ack-grep')
let g:ackprg = "ack-grep"
else
finish
endif
let g:ackprg .= g:ack_default_options
endif
the g:ack_default_options are only applied if g:ackprg is unset.
Either
- note this in the documentation (and explain that the options can be passed directly to
g:ackprg), or
- apply these options even if
g:ack_default_options is set.