diff --git a/doc/telescope.txt b/doc/telescope.txt index 81a7006..ae76e2a 100644 --- a/doc/telescope.txt +++ b/doc/telescope.txt @@ -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" } diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 1c573ba..4b85cff 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -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" }]] )