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" }]] )