diff options
author | Christian Segundo | 2025-01-17 22:00:57 +0100 |
---|---|---|
committer | Christian Segundo | 2025-01-17 22:00:57 +0100 |
commit | 4f02b24b6e8509897d9e3caf227309e936565656 (patch) | |
tree | 5b00f2343a22369fd2851f5a46f888394254cd31 /lua/plugins/core/nvim-tree.lua | |
parent | 9f75ecb189ab468164195647f62adb868dffe80e (diff) | |
download | config-4f02b24b6e8509897d9e3caf227309e936565656.tar.gz |
Simplify nvim-tree toggle mapping
Diffstat (limited to 'lua/plugins/core/nvim-tree.lua')
-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", + }, + } } |