Revert "chore: simplify vimgrep_arguments args (#2440)" (#2488)

This reverts commit cfe6df6257.
This commit is contained in:
James Trew
2023-05-07 00:47:52 -04:00
committed by GitHub
parent 713d26b985
commit d77b37f452
2 changed files with 13 additions and 7 deletions

View File

@@ -626,20 +626,23 @@ append(
append(
"vimgrep_arguments",
{ "rg", "--vimgrep", "--smart-case" },
{ "rg", "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", "--smart-case" },
[[
Defines the command that will be used for `live_grep` and `grep_string`
pickers.
Hint: Make sure that color is currently set to `never` because we do
not yet interpret color codes
Hint 2: Make sure that these options are in your changes arguments:
("--no-heading", "--with-filename", "--line-number", "--column") or
"--vimgrep"
"--no-heading", "--with-filename", "--line-number", "--column"
because we need them so the ripgrep output is in the correct format.
Default: {
"rg",
"--vimgrep",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case"
}]]
)