From a53dc390abe3b062c2ebdd46ff4314ea6c90d7e5 Mon Sep 17 00:00:00 2001 From: Sameer Kumar Date: Wed, 16 Oct 2024 12:23:41 +0530 Subject: [PATCH] fixed nvim tree mappings --- .config/nvim/lua/mappings.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index 3a4eae9..bdefb0d 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua @@ -63,10 +63,12 @@ map("n", "lf", "Lspsaga finder", opts) map("n", "le", "Lspsaga diagnostic_jump_next", opts) -- nvim-tree mappings -map("n", "ee", "NvimTreeFindFileToggle", { desc = "Toggle file explorer on current file" }) -map("n", "ec", "NvimTreeCollapse", { desc = "Collapse file explorer" }) +map("n", "ee", "NvimTreeToggle", { desc = "Toggle file explorer" }) +map("n", "ef", "NvimTreeFocus", { desc = "Focus in file explorer" }) +map("n", "ec", "NvimTreeClose", { desc = "Collapse file explorer" }) map("n", "er", "NvimTreeRefresh", { desc = "Refresh file explorer" }) -- remove default mappings nomap("n", "n") +nomap("n", "e") nomap("n", "b")