feat(bookmarks): add bookmark feature (#1412)

This commit is contained in:
Kiyan
2022-07-11 10:00:12 +02:00
committed by GitHub
parent 0fa2ec1950
commit df92f1527f
8 changed files with 109 additions and 9 deletions

View File

@@ -45,6 +45,7 @@ local Actions = {
run_file_command = require("nvim-tree.actions.node.run-command").run_file_command,
toggle_file_info = require("nvim-tree.actions.node.file-popup").toggle_file_info,
system_open = require("nvim-tree.actions.node.system-open").fn,
toggle_mark = require("nvim-tree.marks").toggle_mark,
}
local function handle_action_on_help_ui(action)

View File

@@ -227,6 +227,11 @@ local DEFAULT_MAPPINGS = {
action = "toggle_help",
desc = "toggle help",
},
{
key = "m",
action = "toggle_mark",
desc = "Toggle node in bookmarks",
},
}
-- END_DEFAULT_MAPPINGS