Skip to content

Commit 516f95e

Browse files
authored
docs: fix default mappings function name in examples: api.map.on_attach.default (#3269)
docs: fix default mappings function name
1 parent 1df1960 commit 516f95e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/nvim-tree-lua.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ The `on_attach` function is passed the `bufnr` of nvim-tree. Use
349349
vim.keymap.set("n", "<C-e>", api.node.open.replace_tree_buffer, opts("Open: In Place"))
350350
---
351351
-- OR use all default mappings
352-
api.map.on_attach.default.on_attach_default(bufnr)
352+
api.map.on_attach.default(bufnr)
353353

354354
-- remove a default
355355
vim.keymap.del("n", "<C-]>", { buffer = bufnr })
@@ -470,7 +470,7 @@ Alternatively, you may apply these default mappings from your
470470
return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true }
471471
end
472472

473-
api.map.on_attach.default.on_attach_default(bufnr)
473+
api.map.on_attach.default(bufnr)
474474

475475
-- your removals and mappings go here
476476
end

0 commit comments

Comments
 (0)