docs: add on_attach to quickstart (#2256)
This commit is contained in:
parent
58d1014324
commit
73ab6651db
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user