Skip to content

Better defaults for vimgrep_argumentsΒ #35

@dlvhdr

Description

@dlvhdr

I had the --fixed-strings option set under telescope's defaults.vimgrep_arguments and couldn't figure out why egrepify wasn't working correctly with the AND operator.
Fixed it by running it with:

        require("telescope").extensions.egrepify.egrepify({
          vimgrep_arguments = {
            "rg",
            "--color=never",
            "--no-heading",
            "--with-filename",
            "--line-number",
            "--column",
            "--smart-case",
            "--hidden",
            "--trim", -- add this value
          },
        })

Suggestions

  • Maybe include something about vimgrep_arguments in the readme
  • Maybe read the vimgrep_arguments passed to telescope and show a warning if they are set incorrectly

Awesome plugin! <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions