From 4f02b24b6e8509897d9e3caf227309e936565656 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Fri, 17 Jan 2025 22:00:57 +0100 Subject: Simplify nvim-tree toggle mapping --- lua/plugins/core/nvim-tree.lua | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'lua') 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', 'fe', "NvimTreeToggle", { 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"] = { "NvimTreeToggle", "Explorer" } - end, - }, + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + } } -- cgit v1.2.3