From e2a77a54a35642dd95310effe2bf4e36fff3af26 Mon Sep 17 00:00:00 2001 From: Jose Veiga Date: Sun, 12 Jun 2022 07:03:12 -0400 Subject: [PATCH] doc: use correct option name for 'only_sort_text' (#1995) --- doc/telescope.txt | 2 +- lua/telescope/builtin/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/telescope.txt b/doc/telescope.txt index 8e38635..42f8da1 100644 --- a/doc/telescope.txt +++ b/doc/telescope.txt @@ -854,7 +854,7 @@ builtin.grep_string({opts}) *telescope.builtin.grep_string()* on {disable_coordinates} (boolean) don't show the line and row numbers (default: false) - {sort_only_text} (boolean) only sort the text, not the file, + {only_sort_text} (boolean) only sort the text, not the file, line or row (default: false) diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index f930a29..4a99f3f 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -71,7 +71,7 @@ builtin.live_grep = require_on_exported_call("telescope.builtin.files").live_gre ---@field word_match string: can be set to `-w` to enable exact word matches ---@field additional_args function: function(opts) which returns a table of additional arguments to be passed on ---@field disable_coordinates boolean: don't show the line and row numbers (default: false) ----@field sort_only_text boolean: only sort the text, not the file, line or row (default: false) +---@field only_sort_text boolean: only sort the text, not the file, line or row (default: false) builtin.grep_string = require_on_exported_call("telescope.builtin.files").grep_string --- Search for files (respecting .gitignore)