Skip to content

Commit 925ba60

Browse files
committed
doc: clarify need to use a custom functions in on_attach
1 parent c6bade0 commit 925ba60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/nvim-tree-lua.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2300,7 +2300,8 @@ Single left mouse mappings can be achieved via `<LeftRelease>`.
23002300

23012301
Single right / middle mouse mappings will require changes to |mousemodel| or |mouse|.
23022302

2303-
You may execute your own functions as well as |nvim-tree-api| functions e.g. >
2303+
|vim.keymap.set()| {rhs} is a `(function|string)` thus it may be necessary to
2304+
define your own function to map complex functionality e.g. >
23042305
23052306
local function print_node_path()
23062307
local api = require('nvim-tree.api')

0 commit comments

Comments
 (0)