chore: simplify vimgrep_arguments args (#2440)

This commit is contained in:
Andrew Snelling
2023-04-09 10:18:29 +02:00
committed by GitHub
parent 031322a7c3
commit cfe6df6257
2 changed files with 7 additions and 13 deletions

View File

@@ -532,16 +532,13 @@ 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" ("--no-heading", "--with-filename", "--line-number", "--column") or
"--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",
"--color=never", "--vimgrep",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case" "--smart-case"
} }

View File

@@ -626,23 +626,20 @@ append(
append( append(
"vimgrep_arguments", "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` 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" ("--no-heading", "--with-filename", "--line-number", "--column") or
"--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",
"--color=never", "--vimgrep",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case" "--smart-case"
}]] }]]
) )