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

@@ -532,13 +532,16 @@ telescope.setup({opts}) *telescope.setup()*
Hint: Make sure that color is currently set to `never` because we do Hint: Make sure that color is currently set to `never` because we do
not yet interpret color codes not yet interpret color codes
Hint 2: Make sure that these options are in your changes arguments: Hint 2: Make sure that these options are in your changes arguments:
("--no-heading", "--with-filename", "--line-number", "--column") or "--no-heading", "--with-filename", "--line-number", "--column"
"--vimgrep"
because we need them so the ripgrep output is in the correct format. because we need them so the ripgrep output is in the correct format.
Default: { Default: {
"rg", "rg",
"--vimgrep", "--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case" "--smart-case"
} }

View File

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