From d77b37f4520e5fc2cf4c74c12e42ed4b589bd367 Mon Sep 17 00:00:00 2001 From: James Trew <66286082+jamestrew@users.noreply.github.com> Date: Sun, 7 May 2023 00:47:52 -0400 Subject: [PATCH] Revert "chore: simplify vimgrep_arguments args (#2440)" (#2488) This reverts commit cfe6df6257aa7ee691fb56305923e9fec6c83c97. --- doc/telescope.txt | 9 ++++++--- lua/telescope/config.lua | 11 +++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/doc/telescope.txt b/doc/telescope.txt index ae76e2a..81a7006 100644 --- a/doc/telescope.txt +++ b/doc/telescope.txt @@ -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" } diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 4b85cff..1c573ba 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -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" }]] )