Skip to content

Commit

Permalink
Revert "chore: simplify vimgrep_arguments args (#2440)" (#2488)
Browse files Browse the repository at this point in the history
This reverts commit cfe6df6.

(cherry picked from commit d77b37f)
  • Loading branch information
jamestrew authored and Conni2461 committed May 14, 2023
1 parent 05b42da commit 37fa401
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
9 changes: 6 additions & 3 deletions doc/telescope.txt
Original file line number Diff line number Diff line change
Expand Up @@ -527,13 +527,16 @@ telescope.setup({opts}) *telescope.setup()*
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"
}

Expand Down
11 changes: 7 additions & 4 deletions lua/telescope/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -620,20 +620,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"
}]]
)
Expand Down

0 comments on commit 37fa401

Please sign in to comment.