Skip to content

Commit 1176d51

Browse files
dennypentaibhagwan
authored andcommitted
docs: added grep.search_paths option
1 parent 5140302 commit 1176d51

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

OPTIONS.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,20 @@ Search for strings/regexes using `rg`, `grep` or any other compatible grep'er bi
856856

857857
Unless `search=...` is specified will prompt for the search string.
858858

859+
##### grep.search_paths
860+
861+
Type: `[string]`, Default: `nil`
862+
863+
list of paths to be grep'd, for example:
864+
865+
```lua
866+
-- Using the vimL command
867+
:FzfLua live_grep search_paths=/path/to/search
868+
-- multiple paths using the lua command
869+
:lua FzfLua.grep({ search_paths = { "/path1", "path2" } })
870+
```
871+
872+
859873
#### live_grep
860874

861875
Search for strings/regexes using `rg`, `grep` or any other compatible grep'er binary (e.g. `ag`).

doc/fzf-lua-opts.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*fzf-lua-opts.txt* For Neovim >= 0.8.0 Last change: 2025 January 25
1+
*fzf-lua-opts.txt* For Neovim >= 0.8.0 Last change: 2025 February 06
22

33
==============================================================================
44
Table of Contents *fzf-lua-opts-table-of-contents*
@@ -1149,6 +1149,19 @@ binary (e.g. `ag`).
11491149
Unless `search=...` is specified will prompt for the search string.
11501150

11511151

1152+
grep.search_paths *fzf-lua-opts-grep.search_paths*
1153+
1154+
Type: `[string]`, Default: `nil`
1155+
1156+
list of paths to be grep'd, for example:
1157+
1158+
>lua
1159+
-- Using the vimL command
1160+
:FzfLua live_grep search_paths=/path/to/search
1161+
-- multiple paths using the lua command
1162+
:lua FzfLua.grep({ search_paths = { "/path1", "path2" } })
1163+
<
1164+
11521165

11531166
live_grep *fzf-lua-opts-live_grep*
11541167

0 commit comments

Comments
 (0)