diff options
-rw-r--r-- | lua/plugins/core/nvim-tree.lua | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/lua/plugins/core/nvim-tree.lua b/lua/plugins/core/nvim-tree.lua index 08efb3e..2d5c942 100644 --- a/lua/plugins/core/nvim-tree.lua +++ b/lua/plugins/core/nvim-tree.lua @@ -14,23 +14,10 @@ return { highlight_opened_files = "all", }, }) + vim.keymap.set('n', '<leader>fe', "<cmd>NvimTreeToggle<cr>", { desc = 'Explorer' }) end, - dependencies = { "nvim-tree/nvim-web-devicons" }, - }, - - -- Add nvim-tree which-key shortcuts - { - "folke/which-key.nvim", - opts = function(_, opts) - if type(opts) ~= "table" then - opts = {} - end - - if type(opts.f) ~= "table" then - opts["f"] = {} - end - - opts.f["e"] = { "<cmd>NvimTreeToggle<cr>", "Explorer" } - end, - }, + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + } } |