feat(marks): add navigation (next, previous, select) (#1415)

This commit is contained in:
Kiyan
2022-07-16 10:40:47 +02:00
committed by GitHub
parent b32c88333f
commit 89becc7604
4 changed files with 116 additions and 12 deletions

View File

@@ -1264,4 +1264,16 @@ default.
To get the list of marked paths, you can call
`require("nvim-tree.marks").get_marks()`. This will return `{node}`.
*nvim-tree.bookmarks.navigation*
Navigation for marks is not bound by default in nvim-tree because we don't
want to focus the tree view each time we wish to switch to another mark.
This requires binding bookmark navigation yourself.
-- in your lua configuration
vim.keymap.set("n", "<leader>mn", require("nvim-tree.marks.navigation").next)
vim.keymap.set("n", "<leader>mp", require("nvim-tree.marks.navigation").prev)
vim.keymap.set("n", "<leader>ms", require("nvim-tree.marks.navigation").select)
vim:tw=78:ts=4:sw=4:et:ft=help:norl: