summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Veiga <jose86veiga@gmail.com>2022-06-12 07:03:12 -0400
committerGitHub <noreply@github.com>2022-06-12 13:03:12 +0200
commite2a77a54a35642dd95310effe2bf4e36fff3af26 (patch)
tree81d36de7ca4a0bdf2d285919236c52bc17689d56
parente6b69b1488c598ff7b461c4d9cecad57ef708f9b (diff)
doc: use correct option name for 'only_sort_text' (#1995)
-rw-r--r--doc/telescope.txt2
-rw-r--r--lua/telescope/builtin/init.lua2
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)