Skip to content

Commit 79552ef

Browse files
docs: mention default value of follow option for find_files (#3209)
https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/builtin/__files.lua#L298 It seems the default value is `false`, and unlike other options, the default value of `follow` option is not mentioned.
1 parent bfcc7d5 commit 79552ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/telescope.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,8 @@ builtin.find_files({opts}) *telescope.builtin.find_files()*
933933
`find_command`
934934
{follow} (boolean) if true, follows symlinks
935935
(i.e. uses `-L` flag for the
936-
`find` command)
936+
`find` command) (default:
937+
false)
937938
{hidden} (boolean) determines whether to show
938939
hidden files or not (default:
939940
false)

lua/telescope/builtin/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ builtin.grep_string = require_on_exported_call("telescope.builtin.__files").grep
7777
---@field cwd string: root dir to search from (default: cwd, use utils.buffer_dir() to search relative to open buffer)
7878
---@field find_command function|table: cmd to use for the search. Can be a fn(opts) -> tbl (default: autodetect)
7979
---@field file_entry_encoding string: encoding of output of `find_command`
80-
---@field follow boolean: if true, follows symlinks (i.e. uses `-L` flag for the `find` command)
80+
---@field follow boolean: if true, follows symlinks (i.e. uses `-L` flag for the `find` command) (default: false)
8181
---@field hidden boolean: determines whether to show hidden files or not (default: false)
8282
---@field no_ignore boolean: show files ignored by .gitignore, .ignore, etc. (default: false)
8383
---@field no_ignore_parent boolean: show files ignored by .gitignore, .ignore, etc. in parent dirs. (default: false)

0 commit comments

Comments
 (0)