From bb3f8e29147d102a8d2e60165c4301836a7c03c3 Mon Sep 17 00:00:00 2001 From: 2pac Date: Mon, 6 Nov 2023 22:59:23 +0100 Subject: [PATCH] chore: neo tree mappings similar to nvim tree --- lua/custom/plugins/filetree.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/filetree.lua b/lua/custom/plugins/filetree.lua index d65821f1..76834975 100644 --- a/lua/custom/plugins/filetree.lua +++ b/lua/custom/plugins/filetree.lua @@ -10,7 +10,15 @@ return { "MunifTanjim/nui.nvim", }, config = function() - require('neo-tree').setup {} + require('neo-tree').setup { + window = { + mappings = { + [""] = "open_tabnew", + [""] = "open_split", + [""] = "open_vsplit", + } + } + } vim.keymap.set('n', 'a', [[:Neotree reveal_force_cwd]]) vim.keymap.set('n', 'A', [[:Neotree toggle reveal_force_cwd]])