docs: add on_attach to quickstart (#2256)

This commit is contained in:
Alexander Courtis 2023-06-04 14:09:49 +10:00 committed by GitHub
parent 58d1014324
commit 73ab6651db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -90,8 +90,8 @@ Optionally customise your mappings, see [:help nvim-tree-mappings](doc/nvim-tree
api.config.mappings.default_on_attach(bufnr) api.config.mappings.default_on_attach(bufnr)
-- custom mappings -- custom mappings
vim.keymap.set("n", "<C-t>", api.tree.change_root_to_parent, opts "Up") vim.keymap.set('n', '<C-t>', api.tree.change_root_to_parent, opts('Up'))
vim.keymap.set("n", "?", api.tree.toggle_help, opts "Help") vim.keymap.set('n', '?', api.tree.toggle_help, opts('Help'))
end end
-- pass to setup along with your other options -- pass to setup along with your other options

View File

@ -120,8 +120,8 @@ Optionally customise your |nvim-tree-mappings| via |nvim-tree.on_attach| >
api.config.mappings.default_on_attach(bufnr) api.config.mappings.default_on_attach(bufnr)
-- custom mappings -- custom mappings
vim.keymap.set("n", "<C-t>", api.tree.change_root_to_parent, opts "Up") vim.keymap.set('n', '<C-t>', api.tree.change_root_to_parent, opts('Up'))
vim.keymap.set("n", "?", api.tree.toggle_help, opts "Help") vim.keymap.set('n', '?', api.tree.toggle_help, opts('Help'))
end end
-- pass to setup along with your other options -- pass to setup along with your other options