Skip to content

Commit 0770c9a

Browse files
committed
docs: add window_picker.picker documentation
1 parent 9fbe180 commit 0770c9a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/nvim-tree-lua.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ Subsequent calls to setup will replace the previous configuration.
348348
resize_window = true,
349349
window_picker = {
350350
enable = true,
351+
picker = "default",
351352
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
352353
exclude = {
353354
filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame" },
@@ -999,6 +1000,18 @@ Configuration for various actions.
9991000
from which you last opened the tree.
10001001
Type: `boolean`, Default: `true`
10011002

1003+
*nvim-tree.actions.open_file.window_picker.picker*
1004+
Change the default window picker, can be a string `default` or a function.
1005+
The function should return the window id that will open the node,
1006+
or `nil` if an invalid window is picked or user cancelled the action.
1007+
Type: `string or function`, Default: `"default"`
1008+
Using s1n7ax/nvim-window-picker plugin:
1009+
e.g. >
1010+
require('window-picker').setup()
1011+
function()
1012+
return require('window-picker').pick_window()
1013+
end
1014+
<
10021015
*nvim-tree.actions.open_file.window_picker.chars*
10031016
A string of chars used as identifiers by the window picker.
10041017
Type: `string`, Default: `"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"`

0 commit comments

Comments
 (0)