summaryrefslogtreecommitdiff
path: root/lua/plugins/core
diff options
context:
space:
mode:
authorChristian Segundo2025-01-17 22:00:57 +0100
committerChristian Segundo2025-01-17 22:00:57 +0100
commit4f02b24b6e8509897d9e3caf227309e936565656 (patch)
tree5b00f2343a22369fd2851f5a46f888394254cd31 /lua/plugins/core
parent9f75ecb189ab468164195647f62adb868dffe80e (diff)
downloadconfig-4f02b24b6e8509897d9e3caf227309e936565656.tar.gz
Simplify nvim-tree toggle mapping
Diffstat (limited to 'lua/plugins/core')
-rw-r--r--lua/plugins/core/nvim-tree.lua23
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",
+ },
+ }
}