Skip to content

Commit

Permalink
chore: simplify vimgrep_arguments args (#2440)
Browse files Browse the repository at this point in the history
  • Loading branch information
snelling-a committed Apr 9, 2023
1 parent 031322a commit cfe6df6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
9 changes: 3 additions & 6 deletions doc/telescope.txt
Original file line number Diff line number Diff line change
Expand Up @@ -532,16 +532,13 @@ 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"
("--no-heading", "--with-filename", "--line-number", "--column") or
"--vimgrep"
because we need them so the ripgrep output is in the correct format.

Default: {
"rg",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--vimgrep",
"--smart-case"
}

Expand Down
11 changes: 4 additions & 7 deletions lua/telescope/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -626,23 +626,20 @@ append(

append(
"vimgrep_arguments",
{ "rg", "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", "--smart-case" },
{ "rg", "--vimgrep", "--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"
("--no-heading", "--with-filename", "--line-number", "--column") or
"--vimgrep"
because we need them so the ripgrep output is in the correct format.
Default: {
"rg",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--vimgrep",
"--smart-case"
}]]
)
Expand Down

0 comments on commit cfe6df6

Please sign in to comment.