Skip to content

Commit

Permalink
Revert "chore: simplify vimgrep_arguments args (nvim-telescope#2440)" (
Browse files Browse the repository at this point in the history
…nvim-telescope#2488)

This reverts commit cfe6df6.
  • Loading branch information
jamestrew authored and abelmul committed Jun 6, 2023
1 parent 2a7d265 commit 8a8a89d
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 @@ -532,13 +532,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 @@ -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"
}]]
)
Expand Down

0 comments on commit 8a8a89d

Please sign in to comment.