Skip to content

g:ack_default_options only applied if g:ackprg  #139

@Konfekt

Description

@Konfekt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions