Skip to content

Commit 2f1010c

Browse files
authored
docs: help links regular-expression instead of vim.regex (#3264)
doc: help: link regular-expression instead of vim.regex
1 parent 0f4d2d6 commit 2f1010c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

doc/nvim-tree-lua.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ Config: filters *nvim-tree-config-filters*
16401640

16411641
`U `{custom}` `|nvim_tree.api.filter.custom.toggle()|
16421642
Disable specific file/directory names via:
1643-
• a list of backslash escaped |vim.regex| strings e.g. `"^\\.git""`
1643+
• a list of backslash escaped |regular-expression| e.g. `"^\\.git""`
16441644
• a function passed the absolute path of the directory.
16451645

16461646
All filters including live filter may be disabled via {enable} and toggled
@@ -1666,8 +1666,8 @@ Config: filters *nvim-tree-config-filters*
16661666
Config: live_filter *nvim-tree-config-live-filter*
16671667

16681668
*nvim_tree.config.live_filter*
1669-
Live filter allows you to filter the tree nodes dynamically, based on
1670-
regex matching, see |vim.regex|
1669+
Live filter allows you to filter the tree nodes dynamically using
1670+
|regular-expression| matching.
16711671

16721672
This feature is bound to the `f` key by default. The filter can be cleared
16731673
with the `F` key by default.
@@ -1691,7 +1691,7 @@ Config: filesystem_watchers *nvim-tree-config-filesystem-watchers*
16911691
directory changes, resulting in better performance.
16921692

16931693
Watchers may be disabled for absolute directory paths via {ignore_dirs}.
1694-
• A list of |vim.regex| to match a path, backslash escaped e.g.
1694+
• A list of |regular-expression| to match a path, backslash escaped e.g.
16951695
`"my-proj/\\.build$"` OR
16961696
• A function that is passed an absolute path and returns `true` to disable
16971697
This may be useful when a path is not in `.gitignore` or git integration

lua/nvim-tree/_meta/config/filesystem_watchers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error("Cannot require a meta file")
88
---With this feature, the tree will be partially updated on specific directory changes, resulting in better performance.
99
---
1010
---Watchers may be disabled for absolute directory paths via {ignore_dirs}.
11-
--- - A list of [vim.regex] to match a path, backslash escaped e.g. `"my-proj/\\.build$"` OR
11+
--- - A list of [regular-expression] to match a path, backslash escaped e.g. `"my-proj/\\.build$"` OR
1212
--- - A function that is passed an absolute path and returns `true` to disable
1313
---This may be useful when a path is not in `.gitignore` or git integration is disabled.
1414
---

lua/nvim-tree/_meta/config/filters.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ error("Cannot require a meta file")
2626
---
2727
---`U `{custom}` `|nvim_tree.api.filter.custom.toggle()|
2828
---Disable specific file/directory names via:
29-
---- a list of backslash escaped |vim.regex| strings e.g. `"^\\.git""`
29+
---- a list of backslash escaped |regular-expression| e.g. `"^\\.git""`
3030
---- a function passed the absolute path of the directory.
3131
---
3232
---All filters including live filter may be disabled via {enable} and toggled with |nvim_tree.api.filter.toggle()|

lua/nvim-tree/_meta/config/live_filter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error("Cannot require a meta file")
33

44

55

6-
--- Live filter allows you to filter the tree nodes dynamically, based on regex matching, see [vim.regex]
6+
--- Live filter allows you to filter the tree nodes dynamically using [regular-expression] matching.
77
---
88
--- This feature is bound to the `f` key by default. The filter can be cleared with the `F` key by default.
99
---

0 commit comments

Comments
 (0)