From 74f0dd84f52f718829ccc9bb030f429b6aa857f0 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 8 Jun 2023 10:44:08 +0800 Subject: [PATCH] fix(neo-tree): use `N` key binding to add node --- config/plugins/neo-tree.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/plugins/neo-tree.vim b/config/plugins/neo-tree.vim index f2d729845..c8fc57bc4 100644 --- a/config/plugins/neo-tree.vim +++ b/config/plugins/neo-tree.vim @@ -191,6 +191,14 @@ require("neo-tree").setup({ ["f"] = "filter_on_submit", [""] = "clear_filter", ["[g"] = "prev_git_modified", + ["N"] = { + "add", + -- this command supports BASH style brace expansion ("x{a,b,c}" -> xa,xb,xc). see `:h neo-tree-file-actions` for details + -- some commands may take optional config options, see `:h neo-tree-mappings` for details + config = { + show_path = "none" -- "none", "relative", "absolute" + } + }, ["]g"] = "next_git_modified", }, fuzzy_finder_mappings = { -- define keymaps for filter popup window in fuzzy_finder_mode